You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
527 B

const packageInfo = require("./package.json");
// @ts-check
/**
* @type {import('next').NextConfig}
**/
module.exports = {
reactStrictMode: true,
eslint: {
ignoreDuringBuilds: true
},
env: {
NEXT_PUBLIC_GITHUB_URL: process.env.GIT_URL ?? packageInfo.repository.url,
NEXT_PUBLIC_APP_NAME: process.env.APP_NAME ?? packageInfo.displayName,
NEXT_PUBLIC_DEFAULT_SERVER:
process.env.DEFAULT_SERVER ?? "invidious.privacy.gd"
},
basePath: process.env.BASE_PATH ?? "",
trailingSlash: !(process.env.CI == "true")
};