Browse Source

fix: nextjs asset hosting

restructure
Garrit Franke 4 years ago
parent
commit
5c2de33650
  1. 2
      .github/workflows/deploy.yml
  2. 3
      next.config.js

2
.github/workflows/deploy.yml

@ -1,7 +1,7 @@
on:
push:
branches:
- release
- master
name: Deploy to Github Pages
jobs:
deploy:

3
next.config.js

@ -1,4 +1,7 @@
const isProd = process.env.NODE_ENV === 'production'
module.exports = {
assetPrefix: isProd ? 'https://slashdev.space' : '',
webpack: function (config) {
config.module.rules.push({
test: /\.md$/,

Loading…
Cancel
Save