add basic backend code
This commit is contained in:
1 parent
eeeae2e3fe
commit
e2be0d1d05
11 files changed
+2105
-14
No files matched your search
@@ -0,0 +1,19 @@
|
||||
module.exports = {
|
||||
pluginOptions: {
|
||||
prerenderSpa: {
|
||||
registry: undefined,
|
||||
renderRoutes: [
|
||||
'/'
|
||||
],
|
||||
useRenderEvent: true,
|
||||
headless: true,
|
||||
onlyProduction: true,
|
||||
postProcess: route => {
|
||||
route.html = route.html
|
||||
.replace(/<script (.*?)>/g, '<script $1 defer>')
|
||||
.replace('id="app"', 'id="app" data-server-rendered="true"')
|
||||
return route
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user