-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
7,000 additions
and
3,913 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,20 @@ | ||
/** @type {import('next').NextConfig} */ | ||
// const withOffline = require('next-offline') | ||
|
||
const nextConfig = { | ||
output: 'export', | ||
} | ||
output: "export", | ||
reactStrictMode: true, // Enable React strict mode for improved error handling | ||
swcMinify: true, // Enable SWC minification for improved performance | ||
compiler: { | ||
removeConsole: process.env.NODE_ENV !== "development", // Remove console.log in production | ||
}, | ||
}; | ||
|
||
// module.exports = withOffline(nextConfig) | ||
module.exports = nextConfig | ||
// Configuration object tells the next-pwa plugin | ||
const withPWA = require("next-pwa")({ | ||
dest: "public", // Destination directory for the PWA files | ||
disable: process.env.NODE_ENV === "development", // Disable PWA in development mode | ||
register: true, // Register the PWA service worker | ||
skipWaiting: true, // Skip waiting for service worker activation | ||
}); | ||
|
||
module.exports = withPWA(nextConfig); |
Oops, something went wrong.