Skip to content

Commit 98e5289

Browse files
Updated config.json to have a default key entry (#40)
* Updated config.json to have a default key entry * added unspecified key to vite.config.js
1 parent 19bf382 commit 98e5289

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
],
2626
"GA_MEASUREMENT_ID": "",
2727
"deployment": {
28-
"url": "https://test.michigandaily.com",
28+
"url": "https://test.michigandaily.com/temp/unspecified_key",
2929
"region": "us-east-2",
3030
"distribution": "",
3131
"bucket": "test.michigandaily.com",
32-
"key": "",
32+
"key": "temp/unspecified_key",
3333
"build": "./dist",
3434
"profile": "sink"
3535
}

vite.config.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,11 @@ import { defineConfig } from "vite";
22
import react from "@vitejs/plugin-react";
33
import dsv from "@michigandaily/rollup-plugin-dsv";
44
import nunjucks from "@michigandaily/vite-plugin-transform-nunjucks";
5+
import { deployment } from "./config.json";
56

67
// https://vitejs.dev/config/
78
export default defineConfig({
8-
base: "/",
9+
base: deployment.key.length === 0 ? "/" : `/${deployment.key}/`,
910
plugins: [
1011
react(),
1112
dsv({ include: ["**.csv", "**.tsv", "**.dsv"] }),

0 commit comments

Comments
 (0)