Skip to content

Commit

Permalink
refactor:change deployment to static github page
Browse files Browse the repository at this point in the history
  • Loading branch information
AmosChenZixuan committed Apr 18, 2024
1 parent c15139c commit e14e046
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 29 deletions.
21 changes: 1 addition & 20 deletions app/tag-data.json
Original file line number Diff line number Diff line change
@@ -1,20 +1 @@
{
"markdown": 1,
"code": 1,
"features": 1,
"next-js": 6,
"math": 1,
"ols": 1,
"github": 1,
"guide": 5,
"tailwind": 3,
"hello": 1,
"holiday": 1,
"canada": 1,
"images": 1,
"feature": 2,
"writings": 1,
"book": 1,
"reflection": 1,
"multi-author": 1
}
{"markdown":1,"code":1,"features":1,"next-js":6,"math":1,"ols":1,"github":1,"guide":5,"tailwind":3,"holiday":1,"canada":1,"images":1,"feature":2,"writings":1,"book":1,"reflection":1,"multi-author":1}
18 changes: 10 additions & 8 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ const securityHeaders = [
module.exports = () => {
const plugins = [withContentlayer, withBundleAnalyzer]
return plugins.reduce((acc, next) => next(acc), {
output: 'export',
reactStrictMode: true,
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
eslint: {
Expand All @@ -72,15 +73,16 @@ module.exports = () => {
hostname: 'picsum.photos',
},
],
unoptimized: true
},
async headers() {
return [
{
source: '/(.*)',
headers: securityHeaders,
},
]
},
// async headers() {
// return [
// {
// source: '/(.*)',
// headers: securityHeaders,
// },
// ]
// },
webpack: (config, options) => {
config.module.rules.push({
test: /\.svg$/,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,4 +69,4 @@
]
},
"packageManager": "[email protected]"
}
}

0 comments on commit e14e046

Please sign in to comment.