Skip to content

Commit

Permalink
fix: get rid of strapi cdn env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Keeqler committed Dec 3, 2024
1 parent 68313f7 commit 7e2af57
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 13 deletions.
1 change: 0 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }} \
Expand Down
4 changes: 0 additions & 4 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions env.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
6 changes: 2 additions & 4 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
},
],
},
Expand Down

0 comments on commit 7e2af57

Please sign in to comment.