Skip to content

Commit fc38ef9

Browse files
committed
fix: build
1 parent f6e6dc9 commit fc38ef9

8 files changed

Lines changed: 1272 additions & 1484 deletions

File tree

.npmrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
optional=true
22
strict-peer-dependencies=false
3-

docs/docusaurus.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ const config: Config = {
4646
sidebarPath: './sidebars.ts',
4747
editUrl: 'https://github.com/MetaState-Prototype-Project/prototype/tree/main/docs/',
4848
},
49+
blog: false,
4950
} satisfies Preset.Options,
5051
],
5152
],

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@
9696
"format": "prettier --write .",
9797
"format:check": "prettier --check .",
9898
"lint": "prettier --check . && eslint .",
99-
"prepare": "svelte-kit sync || echo ''",
99+
"prepare": "svelte-kit sync && svelte-package || echo ''",
100100
"add": "shadcn-svelte add"
101101
},
102102
"peerDependencies": {

platforms/profile-editor/client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"build": "vite build",
99
"preview": "vite preview",
1010
"prepare": "svelte-kit sync || echo ''",
11+
"precheck": "pnpm --filter @metastate-foundation/ui run build",
1112
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
1213
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch"
1314
},

platforms/profile-editor/client/src/routes/(protected)/profile/[ename]/+page.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,12 @@
2323
onMount(async () => {
2424
const ename = $page.params.ename;
2525
26+
if (!ename) {
27+
errorMsg = 'Invalid profile URL.';
28+
loading = false;
29+
return;
30+
}
31+
2632
if ($currentUser?.ename === ename) {
2733
goto('/profile');
2834
return;
70 Bytes
Loading

platforms/profile-editor/client/svelte.config.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,15 @@ const config = {
77
adapter: adapter(),
88
env: {
99
dir: '../../../'
10+
},
11+
prerender: {
12+
handleHttpError: (details) => {
13+
// Ignore 404 for favicon - linked from app.html but may be missing
14+
if (details.path?.includes('favicon') || details.message?.includes('favicon')) {
15+
return 'ignore';
16+
}
17+
return 'fail';
18+
}
1019
}
1120
}
1221
};

pnpm-lock.yaml

Lines changed: 1254 additions & 1482 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)