From 7e2af5757b40ee4922dfed5d6294d380c97c337e Mon Sep 17 00:00:00 2001 From: Artur <33733651+Keeqler@users.noreply.github.com> Date: Mon, 2 Dec 2024 22:13:04 -0300 Subject: [PATCH] fix: get rid of strapi cdn env variables --- .github/workflows/deploy.yml | 1 - docker-compose.prod.yml | 4 ---- env.mjs | 4 ---- next.config.js | 6 ++---- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index e52fb951..3935be60 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -32,7 +32,6 @@ jobs: USER_SETTINGS_JWT_SECRET=${{ secrets.USER_SETTINGS_JWT_SECRET }} \ STRAPI_API_URL=${{ secrets.STRAPI_API_URL }} \ STRAPI_API_TOKEN=${{ secrets.STRAPI_API_TOKEN }} \ - STRAPI_CDN_HOST=${{ secrets.STRAPI_CDN_HOST }} \ SMTP_USER=${{ secrets.SMTP_USER }} \ SMTP_PASS=${{ secrets.SMTP_PASS }} \ STRIPE_MONERO_SECRET_KEY=${{ secrets.STRIPE_MONERO_SECRET_KEY }} \ diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 2e1ee0d3..465c7d2b 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -44,10 +44,6 @@ services: STRAPI_API_URL: ${STRAPI_API_URL} STRAPI_API_TOKEN: ${STRAPI_API_TOKEN} - STRAPI_CDN_PROTOCOL: https - STRAPI_CDN_HOST: ${STRAPI_CDN_HOST} - STRAPI_CDN_PORT: 443 - STRAPI_CDN_PATHNAME: / SMTP_HOST: email-smtp.us-east-2.amazonaws.com SMTP_PORT: 587 diff --git a/env.mjs b/env.mjs index d217711f..6462c46e 100644 --- a/env.mjs +++ b/env.mjs @@ -83,10 +83,6 @@ export const env = createEnv({ NEXT_PUBLIC_STRAPI_URL: process.env.NEXT_PUBLIC_STRAPI_URL, STRAPI_API_URL: process.env.STRAPI_API_URL, STRAPI_API_TOKEN: process.env.STRAPI_API_TOKEN, - STRAPI_CDN_PROTOCOL: process.env.STRAPI_CDN_PROTOCOL, - STRAPI_CDN_HOST: process.env.STRAPI_CDN_HOST, - STRAPI_CDN_PORT: process.env.STRAPI_CDN_PORT, - STRAPI_CDN_PATHNAME: process.env.STRAPI_CDN_PATHNAME, SMTP_HOST: process.env.SMTP_HOST, SMTP_PORT: process.env.SMTP_PORT, diff --git a/next.config.js b/next.config.js index 18057fe5..caa3f8f0 100644 --- a/next.config.js +++ b/next.config.js @@ -5,10 +5,8 @@ const nextConfig = { images: { remotePatterns: [ { - protocol: process.env.STRAPI_CDN_PROTOCOL, - hostname: process.env.STRAPI_CDN_HOST, - port: process.env.STRAPI_CDN_PORT, - pathname: process.env.STRAPI_CDN_PATHNAME, + protocol: 'https', + hostname: 'magic-strapi.nbg1.your-objectstorage.com', }, ], },