Skip to content

Commit

Permalink
fix(ci): deploy using 'standalone' and monorepo nft.json root
Browse files Browse the repository at this point in the history
  • Loading branch information
binary64 committed Nov 5, 2023
1 parent c2b9305 commit abc4f0c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion apps/blabber/next.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const { withNx } = require('@nx/next');
const { withSentryConfig } = require('@sentry/nextjs');
const path = require('path');

/**
* @type {import('@nx/next/plugins/with-nx').WithNxOptions}
Expand All @@ -12,6 +13,8 @@ const nextConfig = {
svgr: true,
},
experimental: {
// this includes files from the monorepo base two directories up
outputFileTracingRoot: path.join(__dirname, '../../'),
serverActions: true,
appDir: true,
},
Expand Down Expand Up @@ -49,7 +52,7 @@ module.exports = [withSentryConfig, withNx].reduce((acc, next) => {

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
}
},
);
}
return next(acc);
Expand Down
2 changes: 1 addition & 1 deletion apps/blabber/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"outputs": ["{options.outputPath}"],
"defaultConfiguration": "production",
"options": {
"output": "export",
"output": "standalone",
"outputPath": "dist/apps/blabber",
"buildLibsFromSource": false,
"includeDevDependenciesInPackageJson": false,
Expand Down

0 comments on commit abc4f0c

Please sign in to comment.