-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- separating Server and Client concerns in next.js - Setupping eslint - renaming CamelCase files into snake-case
- Loading branch information
Showing
36 changed files
with
1,671 additions
and
530 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,24 @@ | ||
{ | ||
"extends": "next/core-web-vitals" | ||
"extends": ["next", "prettier"], | ||
"plugins": ["unicorn"], | ||
"rules": { | ||
"no-unused-vars": [ | ||
"error", | ||
{ | ||
"args": "after-used", | ||
"caughtErrors": "none", | ||
"ignoreRestSiblings": true, | ||
"vars": "all", | ||
"argsIgnorePattern": "^_" | ||
} | ||
], | ||
"prefer-const": "error", | ||
"react-hooks/exhaustive-deps": "error", | ||
"unicorn/filename-case": [ | ||
"error", | ||
{ | ||
"case": "kebabCase" | ||
} | ||
] | ||
} | ||
} |
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,41 +1,41 @@ | ||
/** @type {import('next').NextConfig} */ | ||
const nextConfig = { | ||
output: "standalone", | ||
output: 'standalone', | ||
logging: { | ||
fetches: { | ||
fullUrl: true, | ||
}, | ||
fullUrl: true | ||
} | ||
}, | ||
images: { | ||
remotePatterns: [ | ||
{ | ||
protocol: "https", | ||
hostname: "img.buzzfeed.com", | ||
protocol: 'https', | ||
hostname: 'img.buzzfeed.com' | ||
}, | ||
{ | ||
protocol: "http", | ||
hostname: "localhost", | ||
protocol: 'http', | ||
hostname: 'localhost' | ||
}, | ||
{ | ||
protocol: "http", | ||
hostname: "traefik", | ||
protocol: 'http', | ||
hostname: 'traefik' | ||
}, | ||
{ | ||
protocol: "http", | ||
hostname: "host.docker.internal" | ||
protocol: 'http', | ||
hostname: 'host.docker.internal' | ||
} | ||
], | ||
] | ||
}, | ||
|
||
async redirects() { | ||
return [ | ||
{ | ||
source: "/", | ||
destination: "/foods", | ||
permanent: true, | ||
}, | ||
source: '/', | ||
destination: '/foods', | ||
permanent: true | ||
} | ||
]; | ||
}, | ||
} | ||
}; | ||
|
||
module.exports = nextConfig; |
Oops, something went wrong.