diff --git a/.github/workflows/deploy-preview.yml b/.github/workflows/deploy-preview.yml index 9ca97e448..5b13cc514 100644 --- a/.github/workflows/deploy-preview.yml +++ b/.github/workflows/deploy-preview.yml @@ -6,8 +6,8 @@ on: # paths: # - "website/**" env: - REACT_APP_FIREBASE_PROJECT_ID: rowyio - REACT_APP_FIREBASE_PROJECT_WEB_API_KEY: + VITE_APP_FIREBASE_PROJECT_ID: rowyio + VITE_APP_FIREBASE_PROJECT_WEB_API_KEY: "${{ secrets.FIREBASE_WEB_API_KEY_TRYROWY }}" CI: "" jobs: diff --git a/.gitignore b/.gitignore index af5996117..4e723f647 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ # production /build +/dist cloud_functions/functions/lib # firebase diff --git a/createDotEnv.js b/createDotEnv.js index 623ddb7f3..2a0ca98ac 100644 --- a/createDotEnv.js +++ b/createDotEnv.js @@ -8,10 +8,10 @@ const main = ( ) => { return fs.writeFileSync( ".env", - `REACT_APP_FIREBASE_PROJECT_ID = ${projectID} -REACT_APP_FIREBASE_PROJECT_WEB_API_KEY = ${firebaseWebApiKey} -REACT_APP_ALGOLIA_APP_ID = ${algoliaAppId} -REACT_APP_ALGOLIA_SEARCH_API_KEY = ${algoliaSearhApiKey}` + `VITE_APP_FIREBASE_PROJECT_ID = ${projectID} +VITE_APP_FIREBASE_PROJECT_WEB_API_KEY = ${firebaseWebApiKey} +VITE_APP_ALGOLIA_APP_ID = ${algoliaAppId} +VITE_APP_ALGOLIA_SEARCH_API_KEY = ${algoliaSearhApiKey}` ); }; diff --git a/firebase.json b/firebase.json index 26e83bd45..45bcffd32 100644 --- a/firebase.json +++ b/firebase.json @@ -1,6 +1,6 @@ { "hosting": { - "public": "build", + "public": "dist", "ignore": ["firebase.json", "**/.*", "**/node_modules/**"], "rewrites": [ { diff --git a/public/index.html b/index.html similarity index 85% rename from public/index.html rename to index.html index 4e7116ceb..43b61e5e9 100644 --- a/public/index.html +++ b/index.html @@ -15,30 +15,30 @@ - + @@ -47,13 +47,13 @@ manifest.json provides metadata used when your web app is installed on a user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ --> - + @@ -87,7 +87,7 @@ property="og:description" content="Build on the Google Cloud Platform in minutes. Manage Firestore data in a spreadsheet-like UI, write Cloud Functions effortlessly in the browser, and connect to third-party apps. Rowy is open source!" /> - + @@ -96,11 +96,12 @@ property="twitter:description" content="Build on the Google Cloud Platform in minutes. Manage Firestore data in a spreadsheet-like UI, write Cloud Functions effortlessly in the browser, and connect to third-party apps. Rowy is open source!" /> - +
+