Skip to content

Commit

Permalink
Release (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojj1123 authored Jan 20, 2024
1 parent 7749d19 commit 9501b5e
Show file tree
Hide file tree
Showing 36 changed files with 457 additions and 182 deletions.
159 changes: 159 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"eslint.codeActionsOnSave.mode": "all",
"eslint.run": "onType",
"editor.codeActionsOnSave": {
"source.fixAll": true
"source.fixAll": "explicit"
},
"files.associations": {
"*.css": "tailwindcss"
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
86 changes: 86 additions & 0 deletions config/base.next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
/* eslint-disable @typescript-eslint/no-var-requires */
const IS_PROD = process.env.NODE_ENV === "production";

// The folders containing files importing twin.macro
const path = require("path");
const includedDirs = [path.resolve(__dirname, "../src")];

module.exports = () => ({
reactStrictMode: true,
swcMinify: true,
webpack: (config, options) => {
const { dev, isServer } = options;
config.module = config.module || {};
config.module.rules = config.module.rules || [];
config.experiments = {
...config.experiments,
topLevelAwait: true,
};

config.module.rules.push({
test: /.svg$/,
use: [
{
loader: "@svgr/webpack",
options: {
svgo: false,
},
},
],
});
config.module.rules.push({
test: /\.(tsx|ts)$/,
include: includedDirs,
use: [
options.defaultLoaders.babel,
{
loader: "babel-loader",
options: {
sourceMaps: dev,
presets: [
["@babel/preset-react", { runtime: "automatic", importSource: "@emotion/react" }],
],
plugins: [
require.resolve("babel-plugin-macros"),
[require.resolve("@babel/plugin-syntax-typescript"), { isTSX: true }],
],
},
},
],
});

if (!isServer) {
config.resolve.fallback = {
...(config.resolve.fallback || {}),
fs: false,
module: false,
path: false,
os: false,
crypto: false,
};
}
return config;
},
images: {
unoptimized: true,
remotePatterns: [
{
protocol: "https",
hostname: "**",
},
],
// Link: https://fe-developers.kakaoent.com/2022/220714-next-image/
imageSizes: [64, 256],
deviceSizes: [512],
contentSecurityPolicy: "default-src 'self'; script-src 'none'; sandbox;",
},
sentry: {
// Use `hidden-source-map` rather than `source-map` as the Webpack `devtool`
// for client-side builds. (This will be the default starting in
// `@sentry/nextjs` version 8.0.0.) See
// https://webpack.js.org/configuration/devtool/ and
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/#use-hidden-source-map
// for more information.
hideSourceMaps: IS_PROD,
},
});
Loading

1 comment on commit 9501b5e

@vercel
Copy link

@vercel vercel bot commented on 9501b5e Jan 20, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.