Skip to content

Commit

Permalink
Fix err
Browse files Browse the repository at this point in the history
  • Loading branch information
timneutkens committed Sep 28, 2023
1 parent 77e35d4 commit 88f0816
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions packages/next-swc/crates/next-core/src/env.rs
Expand Up @@ -160,18 +160,6 @@ pub async fn env_for_js(
None => "undefined".to_string(),
},
);
"__NEXT_I18N_DOMAINS".to_string(),
// Don't stringify undefined
if let Some(i18n) = next_config.i18n.as_ref() {
if let Some(domains) = i18n.domains.as_ref() {
serde_json::to_string(domains)?
} else {
"undefined".to_string()
}
} else {
"undefined".to_string()
},
);

if !test_mode.is_empty() {
map.insert("__NEXT_TEST_MODE".to_string(), "true".to_string());
Expand Down

0 comments on commit 88f0816

Please sign in to comment.