Add CDN to user submitted images Closes #1222

This commit is contained in:
Kalle
2024-02-25 10:39:54 +02:00
parent b6f29e29b1
commit efb44745df
2 changed files with 3 additions and 2 deletions

View File

@@ -40,7 +40,8 @@ const staticAssetsUrl = ({
export const SENDOU_INK_BASE_URL = "https://sendou.ink";
const USER_SUBMITTED_IMAGE_ROOT = "https://sendou.nyc3.digitaloceanspaces.com";
const USER_SUBMITTED_IMAGE_ROOT =
"https://sendou.nyc3.cdn.digitaloceanspaces.com";
export const userSubmittedImage = (fileName: string) =>
`${USER_SUBMITTED_IMAGE_ROOT}/${fileName}`;
// images with https are not hosted on spaces, this is used for local development

View File

@@ -8,7 +8,7 @@
"deploy": "npm ci && npm run build",
"build": "remix vite:build",
"dev": "remix vite:dev",
"dev:prod": "cross-env DB_PATH=db-prod.sqlite3 remix dev",
"dev:prod": "cross-env DB_PATH=db-prod.sqlite3 npm run dev",
"dev:ci": "cp .env.example .env && npm run migrate up && npm run dev",
"start": "npm run migrate up && remix-serve ./build/server/index.js",
"start:nr": "npm run migrate up && NODE_OPTIONS='-r dotenv/config -r newrelic' remix-serve ./build/server/index.js",