-
-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
209 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
//npm.pkg.github.com/:_authToken=${GIT_CREDENTIALS} | ||
@karrio:registry=https://npm.pkg.github.com/ | ||
always-auth=true | ||
legacy-peer-deps=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,4 +26,4 @@ | |
"eslint-config-next": "14.2.8", | ||
"tsconfig": "*" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
#!/bin/bash | ||
|
||
set -e # Exit on error | ||
set -x # Print commands for debugging | ||
|
||
# Configure git to use HTTPS instead of SSH | ||
git config --global credential.helper store | ||
echo "https://${GIT_CREDENTIALS}:[email protected]" >~/.git-credentials | ||
git config --global url."https://${GIT_CREDENTIALS}@github.com/".insteadOf "[email protected]:" | ||
git config --global url."https://${GIT_CREDENTIALS}@github.com/karrioapi/".insteadOf "[email protected]:karrioapi/" | ||
|
||
# Clean and reinitialize submodules | ||
cd /vercel/path0 | ||
|
||
# Update submodule URLs to use HTTPS with token | ||
git config --file=.gitmodules submodule.ee/insiders.url "https://${GIT_CREDENTIALS}@github.com/karrioapi/karrio-insiders.git" | ||
git config --file=.gitmodules submodule.ee/platform.url "https://${GIT_CREDENTIALS}@github.com/karrioapi/karrio-platform.git" | ||
|
||
rm -rf ee/insiders ee/platform | ||
git clean -ffdx | ||
git reset --hard HEAD | ||
git submodule deinit -f . | ||
git submodule sync --recursive | ||
git submodule update --init --recursive --force | ||
|
||
# Install root dependencies | ||
npm install --no-workspaces | ||
|
||
# Install and generate Prisma client | ||
cd ee/platform/packages/console | ||
npm install --no-workspaces | ||
npx prisma generate | ||
|
||
# Back to platform app and install its dependencies | ||
cd ../../../apps/platform | ||
npm install --no-workspaces --legacy-peer-deps | ||
|
||
# Disable telemetry | ||
export NEXT_TELEMETRY_DISABLED=1 | ||
|
||
# Install SWC dependencies | ||
npm install --no-save @next/swc-linux-x64-gnu @next/swc-linux-x64-musl | ||
|
||
# Build the application | ||
npm run build |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
'use client'; | ||
|
||
import dynamic from 'next/dynamic'; | ||
import { Suspense } from 'react'; | ||
|
||
const LandingLayout = dynamic(() => import("@karrio/console/layouts/root-layout"), { | ||
ssr: false, | ||
loading: () => <div>Loading...</div> | ||
}); | ||
|
||
export default function Layout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<Suspense fallback={<div>Loading...</div>}> | ||
<LandingLayout>{children}</LandingLayout> | ||
</Suspense> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
export { default } from "@karrio/console/modules/Landing"; | ||
'use client'; | ||
|
||
import dynamic from 'next/dynamic'; | ||
import { Suspense } from 'react'; | ||
|
||
const LandingPage = dynamic(() => import("@karrio/console/modules/Landing"), { | ||
ssr: false, | ||
loading: () => <div>Loading...</div> | ||
}); | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense fallback={<div>Loading...</div>}> | ||
<LandingPage /> | ||
</Suspense> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
"use client"; | ||
export { default } from "@karrio/core/components/error"; | ||
"use client"; | ||
|
||
import dynamic from 'next/dynamic'; | ||
import { Suspense } from 'react'; | ||
|
||
const ErrorPage = dynamic(() => import("@karrio/console/modules/Error/500"), { | ||
ssr: false, | ||
loading: () => <div>Loading...</div> | ||
}); | ||
|
||
export default function Error() { | ||
return ( | ||
<Suspense fallback={<div>Loading...</div>}> | ||
<ErrorPage /> | ||
</Suspense> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,17 @@ | ||
import "../styles/globals.css"; | ||
export { default } from "@karrio/console/layouts/root-layout"; | ||
import { Metadata } from "next"; | ||
|
||
export const metadata: Metadata = { | ||
title: "Karrio Platform", | ||
description: "Karrio Platform", | ||
}; | ||
|
||
export default function RootLayout({ children }: { children: React.ReactNode }) { | ||
return ( | ||
<html lang="en"> | ||
<body> | ||
{children} | ||
</body> | ||
</html> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,17 @@ | ||
export { default } from "@karrio/console/modules/Maintainance"; | ||
'use client'; | ||
|
||
import dynamic from 'next/dynamic'; | ||
import { Suspense } from 'react'; | ||
|
||
const NotFound = dynamic(() => import("@karrio/console/modules/Error/404"), { | ||
ssr: false, | ||
loading: () => <div>Loading...</div> | ||
}); | ||
|
||
export default function Page() { | ||
return ( | ||
<Suspense fallback={<div>Loading...</div>}> | ||
<NotFound /> | ||
</Suspense> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
export { default } from "@karrio/console/modules/Landing"; | ||
import { lazy } from 'react'; | ||
|
||
const LandingPage = lazy(() => import("@karrio/console/modules/Landing")); | ||
|
||
export const dynamic = 'force-dynamic'; | ||
export const revalidate = 0; | ||
|
||
export default function Page() { | ||
return ( | ||
<div> | ||
<LandingPage /> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"buildCommand": "chmod +x scripts/build.sh && ./scripts/build.sh", | ||
"outputDirectory": ".next", | ||
"framework": "nextjs", | ||
"git": { | ||
"submodules": true, | ||
"deploymentEnabled": { | ||
"paas-foundation": true | ||
} | ||
}, | ||
"installCommand": "npm install", | ||
"regions": [ | ||
"iad1" | ||
] | ||
} |