Skip to content

Commit

Permalink
Merge pull request #14 from elycruz/monorepo
Browse files Browse the repository at this point in the history
issue-#9 - Added 'basePath' field, in 'next.config'.
  • Loading branch information
elycruz committed May 22, 2023
2 parents 0eabb6d + 4bb4854 commit a76aeff
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/site.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ jobs:
- name: Install (Vercel) Turbo
id: install-vercel-turbo
run: ${{ steps.detect-package-manager.outputs.manager }} i -g turbo
- 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
# - 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
- name: Restore cache
uses: actions/cache@v3
with:
Expand Down
1 change: 1 addition & 0 deletions apps/atomic-ui-js-site/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ const withMDX = nextMdx({
const nextConfig = {
output: 'export',
distDir: '../../dist/atomic-ui-js-site',
basePath: '/atomic-ui-js',
// Configure pageExtensions to include md and mdx
pageExtensions: ['ts', 'tsx', 'js', 'jsx', 'md', 'mdx'],
// Optionally, add any other Next.js config below
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"scripts": {
"dev": "turbo dev",
"start": "turbo start",
"build": "turbo lint && turbo build",
"build": "turbo build",
"lint": "turbo lint",
"docs": "turbo doc",
"test": "turbo test",
Expand Down
1 change: 1 addition & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"packages/**/dist/**"
]
},
"dev": {},
"doc": {}
}
}

0 comments on commit a76aeff

Please sign in to comment.