Skip to content

Open-source status page, incident response and uptime monitoring

🤔 will it work (#1059)

Thibault Le Ouayfbe558761ff6
diff --git a/apps/web/next.config.js b/apps/web/next.config.js
index 0ce240301..7a529d933 100644
--- a/apps/web/next.config.js
+++ b/apps/web/next.config.js
@@ -7,14 +7,17 @@ const nextConfig = {
transpilePackages: ["@openstatus/ui", "@openstatus/api"],
experimental: {
outputFileTracingIncludes: {
- "/": ["./node_modules/@google-cloud/tasks/build/esm/src/**/*.json"],
+ "/": [
+ "./node_modules/.pnpm/@google-cloud/tasks/build/esm/src/**/*.json",
+ "./node_modules/@google-cloud/tasks/build/esm/src/**/*.js",
+ ],
},
serverComponentsExternalPackages: [
// "libsql",
// "@libsql",
"@react-email/components",
"@react-email/render",
- // "@google-cloud/tasks",
+ "@google-cloud/tasks",
// "@libsql/client",
// "@libsql/hrana-client",
// "better-sqlite3"
@@ -51,37 +54,36 @@ const nextConfig = {
},
};
-module.exports = withContentlayer(nextConfig);
// Injected content via Sentry wizard below
-// const { withSentryConfig } = require("@sentry/nextjs");
+const { withSentryConfig } = require("@sentry/nextjs");
-// module.exports = withSentryConfig(
-// withContentlayer(nextConfig),
-// {
-// // For all available options, see:
-// // https://github.com/getsentry/sentry-webpack-plugin#options
+module.exports = withSentryConfig(
+ withContentlayer(nextConfig),
+ {
+ // For all available options, see:
+ // https://github.com/getsentry/sentry-webpack-plugin#options
-// // Suppresses source map uploading logs during build
-// silent: true,
+ // Suppresses source map uploading logs during build
+ silent: true,
-// org: "openstatus",
-// project: "openstatus",
-// },
-// {
-// // For all available options, see:
-// // // https://docs.sentry.io/platforms/javascript/guides/nextjs/manual-setup/
+ org: "openstatus",
+ project: "openstatus",
+ },
+ {
+ // 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,
-// // // Transpiles SDK to be compatible with IE11 (increases bundle size)
-// // transpileClientSDK: false,
+ // Transpiles SDK to be compatible with IE11 (increases bundle size)
+ transpileClientSDK: false,
-// // // 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,
+ },
+);
diff --git a/apps/web/package.json b/apps/web/package.json
index dd60d58d6..e2fa5fdb6 100644
--- a/apps/web/package.json
+++ b/apps/web/package.json
@@ -12,7 +12,7 @@
"dependencies": {
"@auth/core": "0.34.1",
"@auth/drizzle-adapter": "1.7.0",
- "@google-cloud/tasks": "5.0.0",
+ "@google-cloud/tasks": "4.0.1",
"@headlessui/react": "1.7.17",
"@hookform/resolvers": "3.3.1",
"@libsql/client": "0.14.0",
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index 25beb4374..01d030e10 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -172,8 +172,8 @@ importers:
specifier: 1.7.0
version: 1.7.0
'@google-cloud/tasks':
- specifier: 5.0.0
- version: 5.0.0([email protected])
+ specifier: 4.0.1
+ version: 4.0.1([email protected])
'@headlessui/react':
specifier: 1.7.17
@@ -2867,9 +2867,9 @@ packages:
'@floating-ui/[email protected]':
resolution: {integrity: sha512-cyawjk9etPZPl/RVtMRnWrwtAhWbPVSrRVYARgOzhLIqxr0k2up1APrrFjqP9QwRQ0AwjKSvbWg4YC6jESutow==}
- '@google-cloud/[email protected]':
- resolution: {integrity: sha512-vwj0jzkHNgY/WvqrNt763QfO3mRHIO1GSFW22scOneI5pcu5sMb/JPN+P+cDPTEXRNPdZCaZ/HicLHZNxbseyA==}
- engines: {node: '>=v14'}
+ '@google-cloud/[email protected]':
+ resolution: {integrity: sha512-cluHSN52WgaNoDPVguxCeXZq4rTBHqJntXFB9aI9zG8n8MJukf6V0H7yoAXpKXQxyeXv4LRy108kAgLPgXP3yA==}
+ engines: {node: '>=14.0.0'}
resolution: {integrity: sha512-yMaA/cIsRhGzW3ymCNpdlPcInXcovztlgu/rirThj2b87u3RzWUszliOqZ/pldy7yhmJPS8uwog+kZSTa4A0PQ==}
@@ -12121,7 +12121,7 @@ snapshots:
- '@vue/composition-api'
- vue
dependencies:
google-gax: 4.0.5([email protected])
transitivePeerDependencies: