Skip to content

Commit

Permalink
Use compatible file for actions/configure-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Jan 25, 2025
1 parent bc54439 commit 59e6cde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
#
# You may remove this line if you want to manage the configuration yourself.
static_site_generator: next
generator_config_file: next.config.ts
#generator_config_file: next.config.ts
- name: Restore cache
uses: actions/cache@v4
with:
Expand Down
11 changes: 5 additions & 6 deletions next.config.ts → next.config.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
import type { NextConfig } from "next";
// @ts-check

const nextConfig: NextConfig = {
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
output: "standalone",
basePath: "",
webpack(config) {
config.module.rules.push({
test: /\.svg$/,
use: ['@svgr/webpack']
});
return config;
},
};
}

export default nextConfig;
module.exports = nextConfig;

0 comments on commit 59e6cde

Please sign in to comment.