GithubHelp home page GithubHelp logo

firebase's Introduction

firebase

Firebase would not let me create a distroav project name.
I am guessing it might have already been taken, but I cannot seem to find anything existing & in use.
So, I created the project distroav-1337, which resulted in Firebase Hosting urls of:

These urls look a little unofficial (aka: "sus").

I set up Firebase Hosting distroav-1337 to use the official distroav.org domain name.

I later [re-]discovered that Firebase Hosting supports multiple sites.
To my surprise it let me create a much less sus distroav hosting site:

I moved distroav.org to be hosted by this second less-sus distroav site.

The point is that using these secondary hosting site affects how firebase hosting should be deployed.
Normally you would just deploy hosting with:

% firebase deploy --only hosting

With multiple sites you have to do it this way:

# Once; configure the hosting target name
# firebase target:apply hosting TARGET_NAME SITE_ID
% firebase target:apply hosting prod distroav
% firebase target:apply hosting dev distroav-1337

# Test Development
% firebase emulators:start --only firestore,functions,hosting:dev

# Deploy Development
% firebase deploy --only firestore,functions,hosting:dev

# Test Production
% firebase emulators:start --only firestore,functions,hosting:prod

# Deploy Production
% firebase deploy --only firestore,functions,hosting:prod

References:

Troublshooting

  • If you are getting... TypeError: Cannot read properties of undefined (reading 'getTime') ...and you are running node v22, this is a known issue. Run nvm use 20 to use node v20.
    The .nvmrc in the project root is supposed to take care of this.

firebase's People

Contributors

paulpv avatar

Watchers

 avatar

Forkers

trouffman

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.