Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ yarn-error.log*
# typescript
*.tsbuildinfo
.vscode/settings.json

# serwist
public/sw*
public/workbox*
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./build/dev/types/routes.d.ts";
import "./build/types/routes.d.ts";

// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
8 changes: 7 additions & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,10 @@ const nextConfig = {
},
};

module.exports = nextConfig;

const withSerwist = require("@serwist/next").default({
swSrc: "src/app/sw.ts",
swDest: "public/sw.js",
});

module.exports = withSerwist(nextConfig);
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "NODE_OPTIONS='--inspect' next dev",
"dev": "NODE_OPTIONS='--inspect' next dev --webpack",
"emulate": "firebase emulators:start",
"build": "next build && tsc",
"build": "next build --webpack && tsc",
"start": "next start",
"lint": "next lint",
"deploy": "firebase deploy --only functions,hosting"
Expand All @@ -23,6 +23,7 @@
"@emotion/styled": "^11.14.1",
"@google-cloud/functions-framework": "^4.0.1",
"@mui/material": "^7.3.6",
"@serwist/next": "^9.4.2",
"cors": "^2.8.5",
"encoding": "^0.1.13",
"firebase": "^12.6.0",
Expand All @@ -35,7 +36,8 @@
"nodemailer": "^7.0.11",
"react": "19.2.3",
"react-dom": "19.2.3",
"react-hook-form": "^7.68.0"
"react-hook-form": "^7.68.0",
"serwist": "^9.4.2"
},
"devDependencies": {
"@types/node": "^20.19.27",
Expand Down
Loading
Loading