Skip to content

Commit 53ac399

Browse files
committed
chore: fix sass compile error when asset url is missing
1 parent de7d68c commit 53ac399

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

next.config.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ let nextConfig = {
3737
basePath: process.env.NEXT_PUBLIC_BASE_PATH || undefined,
3838
transpilePackages: MONOREPO_MODE ? ["@squonk/mui-theme", "@squonk/sdf-parser"] : [],
3939
sassOptions: {
40-
prependData: `$assetsURL: '${process.env.ASSET_URL}';`,
40+
prependData: `$assetsURL: "${process.env.ASSET_URL ?? "https://squonk.informaticsmatters.org"}";`,
4141
},
4242
images: {
4343
domains: ["squonk.informaticsmatters.org"],

src/styles/mixins/font-face-template.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
$base_url: "https://squonk.informaticsmatters.org" !default;
1+
$base_url: "" !default;
22

33
@mixin font-face-template($font-family, $file-name, $style, $weight) {
44
@font-face {

0 commit comments

Comments
 (0)