Skip to content

Commit

Permalink
ci(main): 🚀 Change envs for CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Nudelsuppe42 committed Aug 21, 2024
1 parent 6408aad commit 09ff9ae
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 31 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ jobs:
build:
runs-on: ubuntu-latest

env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
steps:
- uses: actions/checkout@v4
- name: Docker login
Expand All @@ -24,6 +26,7 @@ jobs:
echo NEXT_PUBLIC_API_URL="https://api.buildtheearth.net/api/v1" >> build.env.local
echo NEXT_PUBLIC_MAPBOX_TOKEN="${{ secrets.MAPBOX_TOKEN }}" >> build.env.local
echo PORT=3000 >> build.env.local
echo SENTRY_AUTH_TOKEN="${{ secrets.SENTRY_AUTH_TOKEN }}" >> build.env.local
- name: Build the Docker image
run: docker build . --file Dockerfile --tag ghcr.io/buildtheearth/website-frontend:$(git rev-parse --short HEAD) --tag ghcr.io/buildtheearth/website-frontend:latest
Expand Down
57 changes: 27 additions & 30 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,41 +111,38 @@ module.exports = withBundleAnalyzer(nextConfig);

const { withSentryConfig } = require("@sentry/nextjs");

module.exports = withSentryConfig(
module.exports,
{
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options
module.exports = withSentryConfig(module.exports, {
// For all available options, see:
// https://github.com/getsentry/sentry-webpack-plugin#options

org: "buildtheearth",
project: "main-website",
sentryUrl: "https://sentry.buildtheearth.net/",
org: 'buildtheearth',
project: 'main-website',
sentryUrl: 'https://sentry.buildtheearth.net',

// Only print logs for uploading source maps in CI
silent: !process.env.CI,
// Only print logs for uploading source maps in CI
silent: !process.env.CI,

// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
// For all available options, see:
// https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/

// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,
// Upload a larger set of source maps for prettier stack traces (increases build time)
widenClientFileUpload: true,

// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: "/monitoring",
// Route browser requests to Sentry through a Next.js rewrite to circumvent ad-blockers.
// This can increase your server load as well as your hosting bill.
// Note: Check that the configured route will not match with your Next.js middleware, otherwise reporting of client-
// side errors will fail.
tunnelRoute: '/monitoring',

// Hides source maps from generated client bundles
hideSourceMaps: true,
// Hides source maps from generated client bundles
hideSourceMaps: true,

// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,
// Automatically tree-shake Sentry logger statements to reduce bundle size
disableLogger: true,

// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: false,
}
);
// Enables automatic instrumentation of Vercel Cron Monitors. (Does not yet work with App Router route handlers.)
// See the following for more information:
// https://docs.sentry.io/product/crons/
// https://vercel.com/docs/cron-jobs
automaticVercelMonitors: false,
});
2 changes: 1 addition & 1 deletion src/utils/Sitemap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export function generateSiteMapContent(
<lastmod>${d.lastModified.toISOString().split('T')[0]}</lastmod>
${nextConfig.i18n?.locales
.map(
(locale) =>
(locale: string) =>
` <xhtml:link rel="alternate" hreflang="${locale}" href="https://buildtheearth.net/${locale}${d.loc}"/>`,
)
.join('')}
Expand Down

0 comments on commit 09ff9ae

Please sign in to comment.