Skip to content

Commit dab16ed

Browse files
authored
Merge pull request #20 from debs-obrien/fix-deploy
2 parents acd6e81 + 7b78dde commit dab16ed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/nextjs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333
npm ci
3434
npm run build
3535
working-directory: movies-app
36+
env:
37+
BASEPATH: /playwright-movies-app
3638
- name: Upload artifact
3739
uses: actions/upload-pages-artifact@v1
3840
with:

movies-app/next.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { NextConfig } from 'next'
22

33
const config: NextConfig = {
4-
basePath: '/playwright-movies-app',
4+
basePath: process.env.BASEPATH,
55
webpack: (config) => {
66
config.module.rules.push({
77
test: /\.svg$/,

0 commit comments

Comments
 (0)