Skip to content

Commit

Permalink
Update CORS configuration and dataset URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
ctwhome committed Mar 19, 2024
1 parent 7b8208e commit 720c8f9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
7 changes: 6 additions & 1 deletion cors-config.json
Original file line number Diff line number Diff line change
@@ -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
Expand Down
20 changes: 17 additions & 3 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -16,18 +16,32 @@
// 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)',
description: 'Rain and clouds',
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;
}
});
</script>

<div class="container mx-auto px-4">
Expand Down

0 comments on commit 720c8f9

Please sign in to comment.