Skip to content

Commit 11f358d

Browse files
committed
install better-sqlite3 in package.json again
1 parent a7eae06 commit 11f358d

File tree

4 files changed

+200
-15
lines changed

4 files changed

+200
-15
lines changed

Diff for: docker/production/Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ RUN mkdir -p /data && chown -R node:node /data
3232

3333
USER node
3434
RUN --mount=type=cache,id=pnpm,target=~/.pnpm-store pnpm install --frozen-lockfile --recursive --prefer-offline
35-
# Install native node_modules in Dockerfile so it uses pnpm's supportedArchitectures feature in package.json. sharp is required only if you use next/image optimization while better-sqlite3 is used in the app itself
36-
35+
# Install native node_modules in Dockerfile so it uses pnpm's supportedArchitectures feature in package.json. sharp is required only if you use next/image optimization
36+
RUN --mount=type=cache,id=pnpm,target=~/.pnpm-store pnpm install [email protected] --recursive --prefer-offline
3737

3838
# 2. Rebuild the source code only when needed
3939
FROM base AS builder

Diff for: next.config.mjs

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ const nextConfig = {
1111
cpus: 1,
1212
},
1313
output: 'standalone',
14+
webpack: (config, context) => {
15+
config.watchOptions = {
16+
poll: 1000,
17+
aggregateTimeout: 300,
18+
}
19+
return config
20+
},
1421
}
1522

1623
export default nextConfig

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"dependencies": {
2323
"@ngneat/falso": "^7.2.0",
2424
"@t3-oss/env-nextjs": "^0.9.2",
25+
"better-sqlite3": "^9.4.3",
2526
"drizzle-orm": "^0.30.1",
2627
"jiti": "^1.21.0",
2728
"next": "14.1.3",

0 commit comments

Comments
 (0)