Skip to content

Commit

Permalink
🪚 chore: remove step of actions/configure-pages@v5 #2
Browse files Browse the repository at this point in the history
  • Loading branch information
restrainhalation committed Jun 15, 2024
1 parent 5d788cf commit cc7a3dc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 17 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,6 @@ jobs:
with:
node-version: "20"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v5
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@v4
with:
Expand Down
15 changes: 6 additions & 9 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,21 +1,18 @@
import bundleAnalyzer from '@next/bundle-analyzer';

// 環境差を埋めるためのパスのプレフィックス
const prefix = process.env.NODE_ENV === 'production' ? '/training-github-workflow' : ''

const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
});

export default withBundleAnalyzer({
images: { unoptimized: true },
assetPrefix: prefix,
basePath: prefix,
output: 'export',

// Optional: Change links `/me` -> `/me/` and emit `/me.html` -> `/me/index.html`
// trailingSlash: true,

// Optional: Prevent automatic `/me` -> `/me/`, instead preserve `href`
// skipTrailingSlashRedirect: true,

// Optional: Change the output directory `out` -> `dist`
// distDir: 'dist',

reactStrictMode: false,
eslint: {
ignoreDuringBuilds: true,
Expand Down

0 comments on commit cc7a3dc

Please sign in to comment.