🩹 Better fix for ENOENT schema.prisma
This commit is contained in:
@ -6,7 +6,7 @@ RUN npm --global install pnpm
|
||||
|
||||
FROM base AS builder
|
||||
RUN apt-get -qy update && apt-get -qy --no-install-recommends install openssl git
|
||||
COPY pnpm-lock.yaml .npmrc pnpm-workspace.yaml ./
|
||||
COPY pnpm-lock.yaml pnpm-workspace.yaml ./
|
||||
RUN pnpm fetch
|
||||
ADD . ./
|
||||
RUN pnpm install -r --offline
|
||||
|
@ -14,6 +14,13 @@ const nextConfig = withTM({
|
||||
experimental: {
|
||||
outputFileTracingRoot: path.join(__dirname, '../../'),
|
||||
},
|
||||
webpack: (config, { isServer }) => {
|
||||
if (isServer) {
|
||||
config.externals = [...config.externals, '@prisma/client']
|
||||
}
|
||||
|
||||
return config
|
||||
},
|
||||
headers: async () => {
|
||||
return [
|
||||
{
|
||||
|
@ -7,6 +7,13 @@ const pages = ['pricing', 'privacy-policies', 'terms-of-service', 'about']
|
||||
|
||||
module.exports = withBundleAnalyzer({
|
||||
transpilePackages: ['utils', 'models'],
|
||||
webpack: (config, { isServer }) => {
|
||||
if (isServer) {
|
||||
config.externals = [...config.externals, '@prisma/client']
|
||||
}
|
||||
|
||||
return config
|
||||
},
|
||||
async redirects() {
|
||||
return [
|
||||
{
|
||||
|
@ -14,6 +14,13 @@ const nextConfig = withTM({
|
||||
experimental: {
|
||||
outputFileTracingRoot: path.join(__dirname, '../../'),
|
||||
},
|
||||
webpack: (config, { isServer }) => {
|
||||
if (isServer) {
|
||||
config.externals = [...config.externals, '@prisma/client']
|
||||
}
|
||||
|
||||
return config
|
||||
},
|
||||
})
|
||||
|
||||
const sentryWebpackPluginOptions = {
|
||||
|
2286
pnpm-lock.yaml
generated
2286
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user