Skip to content

Commit

Permalink
Proxy for GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Stanislav Pelak committed Mar 26, 2024
1 parent c86ae85 commit a66502f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,24 @@ const path = require('path'); // eslint-disable-line @typescript-eslint/no-var-r
const nextConfig = {
output: 'export',
reactStrictMode: true,

// GitHub pages
rewrites: () => [
{
source: '/website',
destination: '/',
},
],

compiler: {
// Enables the styled-components SWC transform
styledComponents: true,
},

images: {
unoptimized: true,
},

webpack(config) {
config.module.rules.push({
test: /\.svg$/,
Expand Down

0 comments on commit a66502f

Please sign in to comment.