(library)
| 29 | }; |
| 30 | |
| 31 | function getBaseUrl(library) { |
| 32 | let env = process.env.DOCS_ENV; |
| 33 | let base = env ? BASE_URL[env][library] : `http://localhost:1234/${library}`; |
| 34 | let publicUrl = process.env.PUBLIC_URL; |
| 35 | if (publicUrl) { |
| 36 | base += publicUrl.replace(/\/$/, ''); |
| 37 | } |
| 38 | return base; |
| 39 | } |
| 40 | |
| 41 | const __dirname = path.dirname(fileURLToPath(import.meta.url)); |
| 42 | const REPO_ROOT = path.resolve(__dirname, '../../../../'); |