Skip to content

Commit

Permalink
Merge branch 'staging' of github.com:Vizzuality/afoco into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
mluena committed Dec 20, 2024
2 parents ef6d140 + ea73af5 commit add086e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 2 additions & 0 deletions client/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ COPY --from=build --chown=nextjs:nodejs /app/client/.next ./.next
COPY --from=build --chown=nextjs:nodejs /app/client/entrypoint.sh ./entrypoint.sh
COPY --from=build /app/node_modules ./node_modules
COPY --from=build /app/client/package.json ./package.json
COPY --from=build /app/client/public ./public
COPY --from=build /app/client/next.config.mjs ./next.config.mjs

USER nextjs

Expand Down
9 changes: 8 additions & 1 deletion client/next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,19 @@ import('./src/env.mjs');
const nextConfig = {
transpilePackages: ['@serverless-app-scaffold/types', 'lucide-react', 'hi'],
images: {
domains: ['api.mapbox.com', 'afoco-staging-assets.s3.ap-northeast-2.amazonaws.com'],
remotePatterns: [
{
protocol: 'https',
hostname: 'climation-staging.afocosec.org',
},
{
protocol: 'https',
hostname: 'afoco-staging-assets.s3.ap-northeast-2.amazonaws.com',
},
{
protocol: 'https',
hostname: 'afoco-production-assets.s3.ap-northeast-2.amazonaws.com',
},
],
},
async redirects() {
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/base/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -105,5 +105,5 @@ module "production" {
pipeline_user_access_key_id = module.iam.pipeline_user_access_key_id
pipeline_user_access_key_secret = module.iam.pipeline_user_access_key_secret
node_env = "production"
cert_validated = false
cert_validated = true
}

0 comments on commit add086e

Please sign in to comment.