mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-18 05:41:58 +01:00
* add sentry * nit * nit * add requirement to ee * try to ensure sentry is installed in integration tests
27 lines
783 B
JavaScript
27 lines
783 B
JavaScript
// Get Danswer Web Version
|
|
const { version: package_version } = require("./package.json"); // version from package.json
|
|
const env_version = process.env.DANSWER_VERSION; // version from env variable
|
|
// Use env version if set & valid, otherwise default to package version
|
|
const version = env_version || package_version;
|
|
|
|
/** @type {import('next').NextConfig} */
|
|
const nextConfig = {
|
|
output: "standalone",
|
|
swcMinify: true,
|
|
publicRuntimeConfig: {
|
|
version,
|
|
},
|
|
};
|
|
|
|
const { withSentryConfig } = require("@sentry/nextjs");
|
|
|
|
module.exports = withSentryConfig(nextConfig, {
|
|
org: "danswer",
|
|
project: "javascript-nextjs",
|
|
|
|
// An auth token is required for uploading source maps.
|
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
|
|
|
silent: false, // Can be used to suppress logs
|
|
});
|