fix(web): prepare Vercel build and standalone runtime

This commit is contained in:
root 2026-03-31 06:04:38 +00:00
parent a493e83ae4
commit 105ae3493a
3 changed files with 8 additions and 3 deletions

View File

@ -35,4 +35,4 @@ COPY --from=builder /app/web/.next/static ./.next/static
EXPOSE 3045 EXPOSE 3045
ENV PORT=3045 ENV PORT=3045
CMD ["node", "server.js"] CMD ["node", "web/server.js"]

View File

@ -21,8 +21,12 @@ const securityHeaders = [
]; ];
const nextConfig: NextConfig = { const nextConfig: NextConfig = {
output: "standalone", ...(process.env.VERCEL
outputFileTracingRoot: path.join(process.cwd(), ".."), ? {}
: {
output: "standalone",
outputFileTracingRoot: path.join(process.cwd(), ".."),
}),
transpilePackages: [ transpilePackages: [
"@bytelyst/api-client", "@bytelyst/api-client",
"@bytelyst/blob-client", "@bytelyst/blob-client",

View File

@ -33,6 +33,7 @@
"@tiptap/starter-kit": "^2.11.0", "@tiptap/starter-kit": "^2.11.0",
"@bytelyst/react-auth": "^0.1.0", "@bytelyst/react-auth": "^0.1.0",
"@bytelyst/telemetry-client": "^0.1.0", "@bytelyst/telemetry-client": "^0.1.0",
"@bytelyst/ui": "^0.1.0",
"lucide-react": "^0.575.0", "lucide-react": "^0.575.0",
"sonner": "^2.0.0", "sonner": "^2.0.0",
"next": "16.1.6", "next": "16.1.6",