Source maps

This commit is contained in:
Stan Wohlwend 2024-03-04 22:46:07 +01:00
parent 5689e4125f
commit 459fbdea5b
4 changed files with 20 additions and 4 deletions

View File

@ -1,5 +1,6 @@
/** @type {import("next").NextConfig} */
module.exports = {
productionBrowserSourceMaps: true,
webpack(config) {
config.experiments = { ...config.experiments, topLevelAwait: true }
return config

View File

@ -12,9 +12,10 @@
"codegen": "turbo run codegen --no-cache",
"prisma:server": "pnpm run --filter=@stackframe/stack-server prisma",
"dev": "turbo run dev --parallel --continue",
"dev:app": "turbo run dev --parallel --continue --filter=@stackframe/dev-app...",
"dev:server": "turbo run dev --parallel --continue --filter=@stackframe/stack-server...",
"dev:email": "turbo run email --parallel --continue --filter=@stackframe/stack-server...",
"dev:app": "turbo run dev --continue --filter=@stackframe/dev-app...",
"dev:server": "turbo run dev --continue --filter=@stackframe/stack-server...",
"dev:email": "turbo run email --continue --filter=@stackframe/stack-server...",
"start:server": "turbo run start --continue --filter=@stackframe/stack-server...",
"docs": "turbo run dev --parallel --continue --filter=stack-docs...",
"lint": "turbo run lint --no-cache -- --max-warnings=0",
"prettier": "prettier --check .",

View File

@ -22,7 +22,8 @@ const withBundleAnalyzer = createBundleAnalyzer({
const nextConfig = {
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
output: "standalone",
// we're open-source, so we can provide source maps
productionBrowserSourceMaps: true,
poweredByHeader: false,
@ -30,6 +31,16 @@ const nextConfig = {
optimizePackageImports: ["@mui/joy"],
},
// uncomment below to disable bundle minimization (useful for debugging prod builds)
/*webpack(webpackConfig) {
return {
...webpackConfig,
optimization: {
minimize: false
}
};
},*/
async headers() {
return [
{

View File

@ -21,6 +21,9 @@
"dev": {
"cache": false
},
"start": {
"cache": false
},
"lint": {
"cache": false
},