Firebase托管和Expo Web:如何将Expo Web构建部署到Firebase托管

问题描述 投票:0回答:1

我目前正在尝试将Expo应用程序部署到Firebase托管,但是我的构建使用Firebase给出的默认index.html,而我的Expo的web-build/index.html正在使用中,并且没有使用。有没有办法使用我的expo Web构建而不是Firebase的index.html?请帮助并给我一些见识:)

CircleCI配置

version: 2
jobs:
  build:
    docker:
      - image: circleci/node:10.17.0
    working_directory: ~/repo
    steps:
      - checkout
      # Download and cache dependencies
      - restore_cache:
          keys:
            - v1-dependencies-{{ checksum "package.json" }}
            - v1-dependencies-
      - run:
          name: Install Dependencies
          command: yarn
      - save_cache:
          key: v1-npm-deps-{{ checksum "package-lock.json" }}
          paths:
            - ./node_modules
      - run:
          name: Install Expo
          command: yarn global add expo-cli
      - run:
          name: Login into Expo
          command: npx expo-cli login -u <EXPO USERNAME> -p <EXPO PASSWORD>
      - run:
          name: Build
          command: expo build:web --non-interactive --no-pwa
      - run:
          name: Firebase Deploy
          command: ./node_modules/.bin/firebase deploy --token <FIREBASE TOKEN> --only hosting
firebase expo firebase-hosting circleci
1个回答
0
投票
我错误地设置了Firebase,在运行firebase init时,我没有更新index.html的默认路径。

Followed the Expo deployment documentation

© www.soinside.com 2019 - 2024. All rights reserved.