diff --git a/cors-config.json b/cors-config.json index 446d2dc..e72f0e0 100644 --- a/cors-config.json +++ b/cors-config.json @@ -1,6 +1,11 @@ [ { - "origin": ["https://nlesc.github.io/","http://localhost", "http://localhost:5173","https://ruisdael.ctwhome.com"], + "origin": [ + "https://nlesc.github.io", + "http://localhost", + "http://localhost:5173", + "https://ruisdael.ctwhome.com" + ], "method": ["GET"], "responseHeader": ["Content-Type"], "maxAgeSeconds": 3600 diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index feb32e9..395b9a0 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -16,10 +16,18 @@ // url: 'https://s3.ctwhome.com/ruisdael/data/animated-data/ql.zarr' // }, { - title: 'Localhost (Dev) Dataset (600MB)', + title: 'Google Cloud (Dev) Dataset (600MB)', description: 'Rain and clouds', image: `${base}/images/cover.webp`, - url: 'http://localhost:5173/data/movie.zarr' + url: 'https://storage.googleapis.com/ruisdael/movie.zarr', + dev: true + }, + { + title: 'Google cloud Dataset (600MB)', + description: 'Rain and clouds', + image: `${base}/images/cover.webp`, + url: 'http://localhost:5173/data/movie.zarr', + dev: true }, { title: 'Dataset with Rain 3 (600MB)', @@ -27,7 +35,13 @@ image: `${base}/images/cover.webp`, url: 'https://s3.ctwhome.com/ruisdael/data/movie.zarr' } - ]; + ].filter((dataset) => { + if (import.meta.env) { + return dataset; + } else { + return !dataset.dev; + } + });