CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutSign UpSign In
sagemathinc

Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.

GitHub Repository: sagemathinc/cocalc
Path: blob/master/src/packages/next/lib/base-path.ts
Views: 687
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