Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemathinc
GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/lib/base-path.ts
1447 views
1
// The basePath, as defined in CoCalc, so "/" is valid, but "" is not.
2
// Note that in nextjs itself they define "" as a valid basePath, but not "/".
3
// This is not part of customize, since it can't be changed at runtime
4
// via the database.
5
6
const basePath: string = process.env.BASE_PATH ?? "/";
7
8
export default basePath;
9
10