mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
Source maps
This commit is contained in:
parent
5689e4125f
commit
459fbdea5b
@ -1,5 +1,6 @@
|
||||
/** @type {import("next").NextConfig} */
|
||||
module.exports = {
|
||||
productionBrowserSourceMaps: true,
|
||||
webpack(config) {
|
||||
config.experiments = { ...config.experiments, topLevelAwait: true }
|
||||
return config
|
||||
|
||||
@ -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 .",
|
||||
|
||||
@ -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 [
|
||||
{
|
||||
|
||||
@ -21,6 +21,9 @@
|
||||
"dev": {
|
||||
"cache": false
|
||||
},
|
||||
"start": {
|
||||
"cache": false
|
||||
},
|
||||
"lint": {
|
||||
"cache": false
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user