Skip to content

Commit cd7ed2a

Browse files
committed
Update to use full static mode
1 parent 4ec453c commit cd7ed2a

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,7 @@ $ docker-compose run --rm node yarn run generate
1818

1919
# develop without docker
2020
$ cross-env NODE_ENV=development CTF_SPACE_ID=vrsagmse1qfb CTF_CDA_ACCESS_TOKEN=5d3d838e7be39328a3f20175aafa937201e308d0bb10498d3283361db3aa1654 yarn run dev
21+
22+
# generate without docker
23+
$ cross-env NODE_ENV=production CTF_SPACE_ID=vrsagmse1qfb CTF_CDA_ACCESS_TOKEN=5d3d838e7be39328a3f20175aafa937201e308d0bb10498d3283361db3aa1654 yarn run generate
2124
```

nuxt.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ module.exports = {
3737
{ rel: 'stylesheet', type: 'text/css', href: 'https://cdn.rawgit.com/milligram/milligram/master/dist/milligram.min.css' }
3838
]
3939
},
40+
/**
41+
* Full static mode
42+
*/
43+
target: 'static',
4044
/*
4145
** Customize the progress bar color
4246
*/
@@ -104,7 +108,6 @@ module.exports = {
104108
sitemap: {
105109
hostname: 'https://mycode.rip',
106110
cacheTime: 1000 * 60 * 15, // 15 minutes
107-
generate: true,
108111
routes: getRoutes
109112
},
110113
// for windows

0 commit comments

Comments
 (0)