Default Version to 0.2-dev (#690)

This commit is contained in:
Yuhong Sun
2023-11-03 18:37:01 -07:00
committed by GitHub
parent 551705ad62
commit 602f9c4a0a
10 changed files with 61 additions and 66 deletions

View File

@ -1,8 +1,8 @@
// Get Danswer Web Version
const { version: package_version } = require('./package.json'); // version from package.json
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;
const version = env_version || package_version;
/** @type {import('next').NextConfig} */
const nextConfig = {