Skip to content

Commit 2c5c382

Browse files
authored
chore: fix route html (#232)
* chore: add ssr * add exportStatic
1 parent ffb84c0 commit 2c5c382

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
/docs-dist
1313
/es
1414
/lib
15+
.doc
1516

1617
# misc
1718
.DS_Store

.umirc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ export default defineConfig({
77
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
88
logo:
99
'https://avatars0.githubusercontent.com/u/9441414?s=200&v=4',
10-
outputPath: '.doc'
10+
outputPath: '.doc',
11+
exportStatic: {}
1112
});

now.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@
77
"use": "@now/static-build",
88
"config": { "distDir": ".doc" }
99
}
10+
],
11+
"routes": [
12+
{ "src": "/(.*)", "dest": "/dist/$1" }
1013
]
1114
}

0 commit comments

Comments
 (0)