@panomc/sdk 1.0.0-dev.49 → 1.0.0-dev.50

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,12 +1,15 @@
1
1
  export let API_URL = import.meta.env.VITE_API_URL;
2
- export const UI_URL = import.meta.env.VITE_UI_URL;
3
- export const PANEL_URL = import.meta.env.VITE_PANEL_URL;
4
- export const SETUP_URL = import.meta.env.VITE_SETUP_URL;
2
+ export const UI_URL = import.meta.env.VITE_UI_URL ?? '/';
3
+ export const PANEL_URL = import.meta.env.VITE_PANEL_URL ?? '/panel';
4
+ export const SETUP_URL = import.meta.env.VITE_SETUP_URL ?? '/';
5
5
  export let PANO_WEBSITE_URL = import.meta.env.VITE_PANO_WEBSITE_URL;
6
6
  export let PANO_WEBSITE_API_URL = import.meta.env.VITE_PANO_WEBSITE_API_URL;
7
7
  export const PRERELEASE = import.meta.env.VITE_PRERELEASE;
8
8
 
9
- export const COOKIE_PREFIX = import.meta.env.VITE_COOKIE_PREFIX;
9
+ // Default matches the Pano backend's cookie prefix — a theme without an explicit
10
+ // VITE_COOKIE_PREFIX would otherwise look up 'undefinedauth_token' and treat every
11
+ // logged-in visitor as anonymous on SSR navigations.
12
+ export const COOKIE_PREFIX = import.meta.env.VITE_COOKIE_PREFIX ?? 'pano_';
10
13
 
11
14
  export const CSRF_TOKEN_COOKIE_NAME = 'csrf_token';
12
15
  export const JWT_COOKIE_NAME = 'auth_token';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panomc/sdk",
3
- "version": "1.0.0-dev.49",
3
+ "version": "1.0.0-dev.50",
4
4
  "author": "PanoMC",
5
5
  "repository": {
6
6
  "url": "https://github.com/PanoMC/sdk"