Skip to content

Commit a66502f

Browse files
author
Stanislav Pelak
committed
Proxy for GitHub Pages
1 parent c86ae85 commit a66502f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

next.config.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,24 @@ const path = require('path'); // eslint-disable-line @typescript-eslint/no-var-r
55
const nextConfig = {
66
output: 'export',
77
reactStrictMode: true,
8+
9+
// GitHub pages
10+
rewrites: () => [
11+
{
12+
source: '/website',
13+
destination: '/',
14+
},
15+
],
16+
817
compiler: {
918
// Enables the styled-components SWC transform
1019
styledComponents: true,
1120
},
21+
1222
images: {
1323
unoptimized: true,
1424
},
25+
1526
webpack(config) {
1627
config.module.rules.push({
1728
test: /\.svg$/,

0 commit comments

Comments
 (0)