Skip to content

Commit 446573f

Browse files
committed
fix(build): use root base path for Vercel hosting
1 parent 010df9f commit 446573f

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ npm run build
2929
npm run preview
3030
```
3131

32-
Built assets use base path `/simplepad/` for GitHub Pages project hosting.
32+
Built assets use base path `/` (Vercel / custom domain root).

public/site.webmanifest

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name": "Simplepad",
33
"short_name": "Simplepad",
44
"description": "A private rich-text notepad that auto-saves in your browser.",
5-
"start_url": "/simplepad/",
6-
"scope": "/simplepad/",
5+
"start_url": "/",
6+
"scope": "/",
77
"icons": [
88
{
9-
"src": "/simplepad/favicon.svg",
9+
"src": "/favicon.svg",
1010
"sizes": "any",
1111
"type": "image/svg+xml",
1212
"purpose": "any"

vite.config.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ function vendorChunk(id: string): string | undefined {
2626
}
2727

2828
// https://vitejs.dev/config/
29-
export default defineConfig(({ command }) => ({
30-
// Project Pages needs /simplepad/; local dev stays on /
31-
base: command === "build" ? "/simplepad/" : "/",
29+
export default defineConfig({
30+
// Root base for Vercel (simplepad.patriarxis.com)
31+
base: "/",
3232
plugins: [vue()],
3333
resolve: {
3434
alias: {
@@ -42,4 +42,4 @@ export default defineConfig(({ command }) => ({
4242
},
4343
},
4444
},
45-
}));
45+
});

0 commit comments

Comments
 (0)