Skip to content

Commit 8bc8929

Browse files
committed
Blog: CodeBase Upload
1 parent f93817a commit 8bc8929

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+6604
-675
lines changed

.gitignore

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
/node_modules
55
/.pnp
66
.pnp.js
7-
.yarn/install-state.gz
87

98
# testing
109
/coverage
@@ -24,13 +23,18 @@
2423
npm-debug.log*
2524
yarn-debug.log*
2625
yarn-error.log*
26+
.pnpm-debug.log*
2727

2828
# local env files
29-
.env*.local
29+
.env
3030

3131
# vercel
3232
.vercel
3333

3434
# typescript
3535
*.tsbuildinfo
3636
next-env.d.ts
37+
38+
# ide settings
39+
.vscode
40+
.idea

.prettierignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
.next
2+
node_modules

.prettierrc

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"singleQuote": true,
3+
"plugins": [
4+
"@trivago/prettier-plugin-sort-imports",
5+
"prettier-plugin-tailwindcss"
6+
],
7+
"importOrder": [
8+
"^next$|^react$|^react/(.*)|^next/(.*)",
9+
"<THIRD_PARTY_MODULES>",
10+
"@/(.*)|^[./]"
11+
],
12+
"importOrderSeparation": true
13+
}

next.config.mjs

+32-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,34 @@
1+
import withPlaiceholder from '@plaiceholder/next';
2+
13
/** @type {import('next').NextConfig} */
2-
const nextConfig = {};
4+
const nextConfig = {
5+
images: {
6+
remotePatterns: [
7+
{
8+
protocol: 'https',
9+
hostname: 'www.notion.so',
10+
},
11+
{
12+
protocol: 'https',
13+
hostname: 's3-us-west-2.amazonaws.com',
14+
},
15+
],
16+
},
17+
// suppress keyv warning
18+
webpack: (config, { webpack }) => {
19+
config.plugins.push(
20+
new webpack.ContextReplacementPlugin(/\/keyv\//, (data) => {
21+
delete data.dependencies[0].critical;
22+
return data;
23+
})
24+
);
25+
return config;
26+
},
27+
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
28+
config.resolve.alias.canvas = false;
29+
config.resolve.alias.encoding = false;
30+
return config;
31+
},
32+
};
333

4-
export default nextConfig;
34+
export default withPlaiceholder(nextConfig);

0 commit comments

Comments
 (0)