diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 2152811..dc78259 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -15,8 +15,13 @@ jobs: - uses: actions/setup-node@v1 with: node-version: 12 - - run: cd src/web && npm ci - - run: cd src/web && npm run ghbuild + + - name: Build + run: | + cd src/web + npm i + npm run build + npm run export - name: Deploy site uses: JamesIves/github-pages-deploy-action@4.1.4 diff --git a/src/web/next.config.js b/src/web/next.config.js index 2f362e7..5a9812d 100644 --- a/src/web/next.config.js +++ b/src/web/next.config.js @@ -1,3 +1,3 @@ module.exports = { - basePath: '/roles-bot', + assetPrefix: '/roles-bot/' } \ No newline at end of file diff --git a/src/web/package.json b/src/web/package.json index 244459e..6937d1f 100644 --- a/src/web/package.json +++ b/src/web/package.json @@ -4,9 +4,9 @@ "scripts": { "dev": "next dev", "build": "next build", + "export": "next export", "start": "next start", - "lint": "next lint", - "ghbuild": "next build && next export" + "lint": "next lint" }, "dependencies": { "next": "12.0.7",