From bb46f1340e708f5114a5c4d8982b497543c47d8c Mon Sep 17 00:00:00 2001 From: Alessandro Pignotti Date: Mon, 14 Oct 2024 15:41:01 +0200 Subject: [PATCH] Svelte: Generalize config file name In preparation for adding fields about non-disk options --- config_public_terminal.js | 2 ++ diskConfig.cloud.js | 2 -- src/routes/+page.svelte | 2 +- vite.config.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) create mode 100644 config_public_terminal.js delete mode 100644 diskConfig.cloud.js diff --git a/config_public_terminal.js b/config_public_terminal.js new file mode 100644 index 0000000..d4341a0 --- /dev/null +++ b/config_public_terminal.js @@ -0,0 +1,2 @@ +export const diskImageUrl = "wss://disks.webvm.io/debian_large_20230522_5044875331.ext2"; +export const diskImageType = "cloud"; diff --git a/diskConfig.cloud.js b/diskConfig.cloud.js deleted file mode 100644 index b555b8a..0000000 --- a/diskConfig.cloud.js +++ /dev/null @@ -1,2 +0,0 @@ -export const diskImageUrl = "wss://disks-staging.webvm.io/debian_large_20230522_5044875331.ext2"; -export const diskImageType = "cloud"; diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 56e7a1c..7a55ea6 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,6 +1,6 @@ diff --git a/vite.config.js b/vite.config.js index a0f0141..70eb7e3 100644 --- a/vite.config.js +++ b/vite.config.js @@ -5,7 +5,7 @@ import { viteStaticCopy } from 'vite-plugin-static-copy'; export default defineConfig({ resolve: { alias: { - 'diskConfig': 'diskConfig.cloud.js' + 'config_terminal': 'config_public_terminal.js' } }, build: {