generated from maheshj01/flutter_create
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55 from maheshj01/pwa
add pwa support
- Loading branch information
Showing
17 changed files
with
6,084 additions
and
263 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,23 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
// output: 'export', | ||
import withPWAInit from "@ducanh2912/next-pwa"; | ||
|
||
const withPWA = withPWAInit({ | ||
dest: "public", | ||
}); | ||
|
||
export default withPWA({ | ||
trailingSlash: true, | ||
images: { | ||
unoptimized: true | ||
} | ||
}; | ||
}, | ||
reactStrictMode: true, | ||
}); | ||
// const nextConfig = { | ||
// // output: 'export', | ||
// trailingSlash: true, | ||
// images: { | ||
// unoptimized: true | ||
// } | ||
// }; | ||
|
||
export default nextConfig; | ||
// export default nextConfig; |
Oops, something went wrong.