diff --git a/.gitignore b/.gitignore index cc982eb9..ed992010 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # See http://help.github.com/ignore-files/ for more about ignoring files. **/storybook-static -.vercel/output/ +**/.vercel/output/ .bin/ /media docker-compose.override.yml diff --git a/.vercel/README.md b/apps/site/.vercel/README.md similarity index 100% rename from .vercel/README.md rename to apps/site/.vercel/README.md diff --git a/.vercel/project.json b/apps/site/.vercel/project.json similarity index 51% rename from .vercel/project.json rename to apps/site/.vercel/project.json index 7894d5f2..bfb2e5a2 100644 --- a/.vercel/project.json +++ b/apps/site/.vercel/project.json @@ -4,7 +4,7 @@ "settings": { "framework": "nextjs", "rootDirectory": null, - "outputDirectory": "apps/site/.next", - "buildCommand": "npm run build:site" + "outputDirectory": null, + "buildCommand": "npm run --include-workspace-root build:site --if-present" } } diff --git a/apps/site/next.config.js b/apps/site/next.config.js index 5d0915b4..82afbf86 100644 --- a/apps/site/next.config.js +++ b/apps/site/next.config.js @@ -20,7 +20,6 @@ const config = { eslint: { dirs: ['src', 'tests'], }, - output: 'standalone', env: { PUBLIC_MEDIA_URL: process.env.PUBLIC_MEDIA_URL, BACKEND_URL: process.env.BACKEND_URL, @@ -28,9 +27,6 @@ const config = { DOMAIN: process.env.DOMAIN, }, transpilePackages: ['@boluo/ui', '@boluo/common'], - experimental: { - outputFileTracingRoot: path.join(__dirname, '../../'), - }, rewrites, webpack: (config) => { // `react-intl` without parser