Skip to content

Commit

Permalink
make site static for github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
brignano authored Jul 21, 2024
1 parent 74bdcae commit aba9ce7
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./.next
path: ./out

# Deployment job
deploy:
Expand Down
23 changes: 23 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@

/** @type {import('next').NextConfig} */
const nextConfig = {
/**
* Enable static exports for the App Router.
*
* @see https://nextjs.org/docs/app/building-your-application/deploying/static-exports
*/
output: "export",

/**
* Set base path. This is the slug of your GitHub repository.
*
* @see https://nextjs.org/docs/app/api-reference/next-config-js/basePath
*/
basePath: "/resume",

/**
* Disable server-based image optimization. Next.js does not support
* dynamic features with static exports.
*
* @see https://nextjs.org/docs/app/api-reference/components/image#unoptimized
*/
images: {
unoptimized: true,
},
publicRuntimeConfig: {
jsonResumeUrl: process.env.JSON_RESUME_URL
},
Expand Down
Empty file added public/.nojekyll
Empty file.

0 comments on commit aba9ce7

Please sign in to comment.