Skip to content

Commit

Permalink
remove basePath for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
Loosetooth committed Sep 27, 2023
1 parent 8139ad1 commit 9c00f93
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 10 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,14 @@ jobs:
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v3
# with:
# Automatically inject basePath in your Next.js configuration file and disable
# server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
#
# You may remove this line if you want to manage the configuration yourself.
# static_site_generator: next
# with:
# # Automatically inject basePath in your Next.js configuration file and disable
# # server side image optimization (https://nextjs.org/docs/api-reference/next/image#unoptimized).
# #
# # You may remove this line if you want to manage the configuration yourself.
# static_site_generator: next
- name: Set up next.config.mjs for workflow
run: mv ./next.config.workflow.mjs ./next.config.mjs
- name: Restore cache
uses: actions/cache@v3
with:
Expand Down
8 changes: 4 additions & 4 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const withNextra = nextra({

export default withNextra({
output: "export",
images: {
unoptimized: true,
},
basePath: '/epola-space-nextra'
// images: {
// unoptimized: true,
// },
// basePath: '/epola-space-nextra'
})
24 changes: 24 additions & 0 deletions next.config.workflow.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import nextra from 'nextra'
import remarkMdxDisableExplicitJsx from 'remark-mdx-disable-explicit-jsx'

const withNextra = nextra({
theme: 'nextra-theme-docs',
themeConfig: './theme.config.jsx',
latex: true,
mdxOptions: {
remarkPlugins: [
[
remarkMdxDisableExplicitJsx,
{ whiteList: ['table', 'thead', 'tbody', 'tr', 'th', 'td'] }
]
]
}
})

export default withNextra({
output: "export",
images: {
unoptimized: true,
},
basePath: '/epola-space-nextra'
})

0 comments on commit 9c00f93

Please sign in to comment.