Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode"
"editor.defaultFormatter": "esbenp.prettier-vscode",
"typescript.tsdk": "node_modules/typescript/lib"
}
1 change: 0 additions & 1 deletion next-env.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/// <reference types="next" />
/// <reference types="next/types/global" />
/// <reference types="next/image-types/global" />

// NOTE: This file should not be edited
Expand Down
20 changes: 12 additions & 8 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,22 @@
const withPWA = require('next-pwa');
const runtimeCaching = require('next-pwa/cache');
const withPWA = require('next-pwa')({
dest: 'public',
disable: process.env.NODE_ENV === 'development',
runtimeCaching,
});

module.exports = withPWA({
/**
* @type {import('next').NextConfig}
*/
const nextConfig = {
reactStrictMode: true,
pageExtensions: ['page.ts', 'page.tsx', 'page.js', 'page.jsx'],
images: {
domains: ['unavatar.io', 'res.cloudinary.com'],
},
pwa: {
dest: 'public',
disable: process.env.NODE_ENV === 'development',
runtimeCaching,
},
eslint: {
dirs: ['pages', 'components', 'web-apis', 'utils', 'hooks'],
},
});
};

module.exports = withPWA(nextConfig);
Loading