mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-09 20:56:02 -05:00
Add CDN to user submitted images Closes #1222
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user