Skip to content

Commit

Permalink
feat: opti (#179)
Browse files Browse the repository at this point in the history
* feat: add posthog

* feat: remove posthog

* style: use next/font

* feat: use Fluent emoji

* feat: use fluent emoji in footer

* fix: fix typo

* fix: fix image too large

* fix: kick out addDynamicIconSelectors

* chore: remove dependency

* chore: test no font import bundle size

* fix: enable next/font

* feat: enable sentry source upload & new 404

* feat: enable autoformat for logo
  • Loading branch information
PaiJi authored May 9, 2024
1 parent 30c8e74 commit 1b2e85b
Show file tree
Hide file tree
Showing 21 changed files with 188 additions and 77 deletions.
8 changes: 4 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const gitRevisionPlugin = new GitRevisionPlugin();
/** @type {import('next').NextConfig} */
const nextConfig = {
output: "standalone",
poweredByHeader: false,
reactStrictMode: true,
images: {
unoptimized: false,
loader: "custom",
loaderFile: "./src/utils/imageLoader.ts",
},
optimizeFonts: false,
assetPrefix: isProd && STATIC_CDN_URL ? STATIC_CDN_URL : undefined,
experimental: {
swcPlugins: [
Expand All @@ -38,11 +38,11 @@ const nextConfig = {
],
],
},
trailingSlash: true,
sentry: {
disableClientWebpackPlugin: true,
disableServerWebpackPlugin: true,
// disableClientWebpackPlugin: true,
// disableServerWebpackPlugin: true,
hideSourcemaps: true,
disableLogger: true,
},
webpack: (config, { buildId, dev, isServer, defaultLoaders, webpack }) => {
config.plugins.push(
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
},
"dependencies": {
"@headlessui/react": "^2.0.1",
"@next/third-parties": "^14.2.3",
"@radix-ui/react-collapsible": "^1.0.3",
"@sentry/nextjs": "^7.113.0",
"@xata.io/client": "^0.29.4",
Expand Down
1 change: 1 addition & 0 deletions public/svgs/lion.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions public/svgs/smiling-face-with-hearts.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1b2e85b

Please sign in to comment.