Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: fix crash on Node.js for Intl.Locale variation #435

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

aralroca
Copy link
Collaborator

Related #195
Related #318

Tot get the direction, in Node is new Intl.Locale(locale).textInfo.direction and in Bun is new Intl.Locale(locale).getTextInfo().direction, the second one replaces the first one, but we need to support both if we want to support Node.js

@aralroca aralroca self-assigned this Aug 27, 2024
@aralroca aralroca merged commit 24224ac into main Aug 27, 2024
0 of 3 checks passed
@aralroca aralroca deleted the aralroca/fix-intl-in-nodejs branch August 27, 2024 14:46
@@ -27,7 +32,7 @@ const staticExportOutputOption = new Set([
const srcDir = path.resolve(rootDir, 'src');
const buildDir =
process.env.BRISA_BUILD_FOLDER ?? path.resolve(rootDir, 'build');
const WORKSPACE = IS_SERVE_PROCESS ? buildDir : srcDir;
const WORKSPACE = IS_BUILD_PROCESS ? srcDir : buildDir;
Copy link
Collaborator Author

@aralroca aralroca Aug 27, 2024

Choose a reason for hiding this comment

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

We only need src building the app, otherwise is always from the build folder. Similar than before, but better, because with a Custom Server is "serve" but was detected as "build", now is better

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant