Skip to content

Commit 5656235

Browse files
committed
Add rootDirectory config and remove PWA wrapper to fix Vercel 404
1 parent a661253 commit 5656235

File tree

2 files changed

+4
-9
lines changed

2 files changed

+4
-9
lines changed

vaultwars/frontend/next.config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
const withPWA = require('next-pwa')({
2-
dest: 'public',
3-
register: true,
4-
skipWaiting: true,
5-
disable: process.env.NODE_ENV === 'development',
6-
buildExcludes: [/manifest\.json$/]
7-
});
8-
91
/** @type {import('next').NextConfig} */
102
const nextConfig = {
113
outputFileTracingRoot: require('path').join(__dirname, '../../'),

vercel.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
"builds": [
44
{
55
"src": "vaultwars/frontend/package.json",
6-
"use": "@vercel/next"
6+
"use": "@vercel/next",
7+
"config": {
8+
"rootDirectory": "vaultwars/frontend"
9+
}
710
}
811
],
912
"headers": [

0 commit comments

Comments
 (0)