Compare commits

...
Author SHA1 Message Date
Prospector 57d474f3ac Merge branch 'main' into truman/storybook-mem-fix 2026-07-21 12:00:19 -07:00
tdgao 115d2d220d reduce memory usage and increase build memory 2026-07-21 10:52:42 -07:00
3 changed files with 6 additions and 3 deletions
+2 -2
View File
@@ -66,6 +66,8 @@ jobs:
- name: Build Storybook
working-directory: ./packages/ui
env:
NODE_OPTIONS: --max-old-space-size=6144
run: pnpm run build-storybook
- name: Configure short SHA
@@ -76,8 +78,6 @@ jobs:
- name: Deploy Storybook preview
uses: cloudflare/wrangler-action@9acf94ace14e7dc412b076f2c5c20b8ce93c79cd # v3.15.0
env:
NODE_OPTIONS: --max-old-space-size=6144
with:
apiToken: ${{ secrets.CF_API_TOKEN }}
accountId: ${{ secrets.CF_ACCOUNT_ID }}
+3
View File
@@ -17,6 +17,9 @@ const config: StorybookConfig = {
addons: ['@storybook/addon-themes', '@storybook/addon-a11y'],
viteFinal: async (config) =>
mergeConfig(config, {
build: {
reportCompressedSize: false,
},
resolve: {
alias: {
'@modrinth/api-client': path.resolve(storybookDirectory, '../../api-client/src/index.ts'),
+1 -1
View File
@@ -43,7 +43,7 @@ import {
// Load locale messages from the UI package's locales
// @ts-ignore
const localeModules = import.meta.glob('../src/locales/*/index.json', {
const localeModules = import.meta.glob('../src/locales/en-US/index.json', {
eager: true,
}) as Record<string, { default: CrowdinMessages }>