fix: export to plus url (#6980)
This commit is contained in:
parent
5302490372
commit
6abf194281
@ -10,6 +10,9 @@ VITE_APP_WS_SERVER_URL=http://localhost:3002
|
|||||||
# set this only if using the collaboration workflow we use on excalidraw.com
|
# set this only if using the collaboration workflow we use on excalidraw.com
|
||||||
VITE_APP_PORTAL_URL=
|
VITE_APP_PORTAL_URL=
|
||||||
|
|
||||||
|
VITE_APP_PLUS_LP=https://plus.excalidraw.com
|
||||||
|
VITE_APP_PLUS_APP=https://app.excalidraw.com
|
||||||
|
|
||||||
VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}'
|
VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyCMkxA60XIW8KbqMYL7edC4qT5l4qHX2h8","authDomain":"excalidraw-oss-dev.firebaseapp.com","projectId":"excalidraw-oss-dev","storageBucket":"excalidraw-oss-dev.appspot.com","messagingSenderId":"664559512677","appId":"1:664559512677:web:a385181f2928d328a7aa8c"}'
|
||||||
|
|
||||||
# put these in your .env.local, or make sure you don't commit!
|
# put these in your .env.local, or make sure you don't commit!
|
||||||
|
@ -5,11 +5,14 @@ VITE_APP_LIBRARY_URL=https://libraries.excalidraw.com
|
|||||||
VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
VITE_APP_LIBRARY_BACKEND=https://us-central1-excalidraw-room-persistence.cloudfunctions.net/libraries
|
||||||
|
|
||||||
VITE_APP_PORTAL_URL=https://portal.excalidraw.com
|
VITE_APP_PORTAL_URL=https://portal.excalidraw.com
|
||||||
|
|
||||||
|
VITE_APP_PLUS_LP=https://plus.excalidraw.com
|
||||||
|
VITE_APP_PLUS_APP=https://app.excalidraw.com
|
||||||
|
|
||||||
# Fill to set socket server URL used for collaboration.
|
# Fill to set socket server URL used for collaboration.
|
||||||
# Meant for forks only: excalidraw.com uses custom VITE_APP_PORTAL_URL flow
|
# Meant for forks only: excalidraw.com uses custom VITE_APP_PORTAL_URL flow
|
||||||
VITE_APP_WS_SERVER_URL=
|
VITE_APP_WS_SERVER_URL=
|
||||||
|
|
||||||
VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
VITE_APP_FIREBASE_CONFIG='{"apiKey":"AIzaSyAd15pYlMci_xIp9ko6wkEsDzAAA0Dn0RU","authDomain":"excalidraw-room-persistence.firebaseapp.com","databaseURL":"https://excalidraw-room-persistence.firebaseio.com","projectId":"excalidraw-room-persistence","storageBucket":"excalidraw-room-persistence.appspot.com","messagingSenderId":"654800341332","appId":"1:654800341332:web:4a692de832b55bd57ce0c1"}'
|
||||||
|
|
||||||
VITE_APP_PLUS_APP=https://app.excalidraw.com
|
|
||||||
VITE_APP_DISABLE_TRACKING=
|
VITE_APP_DISABLE_TRACKING=
|
||||||
|
@ -26,7 +26,9 @@ export const AppMainMenu: React.FC<{
|
|||||||
<MainMenu.Separator />
|
<MainMenu.Separator />
|
||||||
<MainMenu.ItemLink
|
<MainMenu.ItemLink
|
||||||
icon={PlusPromoIcon}
|
icon={PlusPromoIcon}
|
||||||
href="https://plus.excalidraw.com/plus?utm_source=excalidraw&utm_medium=app&utm_content=hamburger"
|
href={`${
|
||||||
|
import.meta.env.VITE_APP_PLUS_LP
|
||||||
|
}/plus?utm_source=excalidraw&utm_medium=app&utm_content=hamburger`}
|
||||||
className="ExcalidrawPlus"
|
className="ExcalidrawPlus"
|
||||||
>
|
>
|
||||||
Excalidraw+
|
Excalidraw+
|
||||||
|
@ -56,7 +56,9 @@ export const AppWelcomeScreen: React.FC<{
|
|||||||
)}
|
)}
|
||||||
{!isExcalidrawPlusSignedUser && (
|
{!isExcalidrawPlusSignedUser && (
|
||||||
<WelcomeScreen.Center.MenuItemLink
|
<WelcomeScreen.Center.MenuItemLink
|
||||||
href="https://plus.excalidraw.com/plus?utm_source=excalidraw&utm_medium=app&utm_content=welcomeScreenGuest"
|
href={`${
|
||||||
|
import.meta.env.VITE_APP_PLUS_LP
|
||||||
|
}/plus?utm_source=excalidraw&utm_medium=app&utm_content=welcomeScreenGuest`}
|
||||||
shortcut={null}
|
shortcut={null}
|
||||||
icon={PlusPromoIcon}
|
icon={PlusPromoIcon}
|
||||||
>
|
>
|
||||||
|
@ -69,7 +69,9 @@ export const exportToExcalidrawPlus = async (
|
|||||||
}
|
}
|
||||||
|
|
||||||
window.open(
|
window.open(
|
||||||
`https://plus.excalidraw.com/import?excalidraw=${id},${encryptionKey}`,
|
`${
|
||||||
|
import.meta.env.VITE_APP_PLUS_APP
|
||||||
|
}/import?excalidraw=${id},${encryptionKey}`,
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -197,7 +197,7 @@ exports[`Test MobileMenu > should initialize with welcome screen and hide once u
|
|||||||
</button>
|
</button>
|
||||||
<a
|
<a
|
||||||
class="welcome-screen-menu-item "
|
class="welcome-screen-menu-item "
|
||||||
href="https://plus.excalidraw.com/plus?utm_source=excalidraw&utm_medium=app&utm_content=welcomeScreenGuest"
|
href="undefined/plus?utm_source=excalidraw&utm_medium=app&utm_content=welcomeScreenGuest"
|
||||||
rel="noreferrer"
|
rel="noreferrer"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>
|
>
|
||||||
|
3
src/vite-env.d.ts
vendored
3
src/vite-env.d.ts
vendored
@ -47,6 +47,9 @@ interface ImportMetaEnv {
|
|||||||
VITE_PKG_VERSION: string;
|
VITE_PKG_VERSION: string;
|
||||||
VITE_IS_EXCALIDRAW_NPM_PACKAGE: string;
|
VITE_IS_EXCALIDRAW_NPM_PACKAGE: string;
|
||||||
|
|
||||||
|
VITE_APP_PLUS_LP: string;
|
||||||
|
VITE_APP_PLUS_APP: string;
|
||||||
|
|
||||||
VITE_WORKER_ID: string;
|
VITE_WORKER_ID: string;
|
||||||
MODE: string;
|
MODE: string;
|
||||||
DEV: string;
|
DEV: string;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user