Skip to content

Commit

Permalink
just gonna try another time?
Browse files Browse the repository at this point in the history
  • Loading branch information
Jdsle committed Nov 1, 2024
1 parent 39d3460 commit d21d953
Show file tree
Hide file tree
Showing 4 changed files with 5,591 additions and 11,083 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
# 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
17 changes: 1 addition & 16 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
/** @type {import('next').NextConfig} */

import {
PHASE_DEVELOPMENT_SERVER,
PHASE_PRODUCTION_BUILD,
} from "next/constants.js";

const nextConfig = {
output: 'export',
reactStrictMode: false,
Expand All @@ -14,14 +9,4 @@ const nextConfig = {
},
};

const nextConfigFunction = async (phase) => {
if (phase === PHASE_DEVELOPMENT_SERVER || phase === PHASE_PRODUCTION_BUILD) {
const withPWA = (await import("@ducanh2912/next-pwa")).default({
dest: "public",
});
return withPWA(nextConfig);
}
return nextConfig;
};

export default nextConfigFunction;
export default nextConfig;
Loading

0 comments on commit d21d953

Please sign in to comment.