Skip to content

Commit

Permalink
remove nextjs config for static pages
Browse files Browse the repository at this point in the history
  • Loading branch information
brignano authored Jul 27, 2024
1 parent 0e133c0 commit c5cb5e8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 26 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
cache: npm
- name: Setup Pages
uses: actions/configure-pages@v5
# with:
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
static_site_generator: next
- name: Restore cache
uses: actions/cache@v4
with:
Expand Down
24 changes: 0 additions & 24 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,30 +1,6 @@

/** @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: (process.env.CI ? "/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

0 comments on commit c5cb5e8

Please sign in to comment.