griffinsockwell/react-firebase-custom-email-handlers

Enable https for react?

Closed this issue · 9 comments

Hey,

how would it be possible to enable https for the react app?

Greetings,
Chris

Firebase hosting uses https by default whether you are using the domain they give you or a custom domain. You can find more information about custom domains on firebase here.

Okay so only the other issue stays open :)

With firebase hosting you don't need to start npm.

You run a build of your react app using a bundler like webpack.

For example if you are using create-react-app, you run npm build and then you deploy the build, which is static.

So i will have to read this up again to understand.

Yeah my recommendation would be to create a new firebase project and then try and upload the default create-react-app to firebase hosting.

When you create a new react app with create-react-app you get some default scripts in your package.json:

"scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test --env=jsdom",
    "eject": "react-scripts eject"
  }

npm start is used to start the development server only

npm run build will create a static build of the app

You will then upload the build folder to firebase hosting

I think if you go through the steps with the default app on a test firebase app it will be a bit more clear. The full steps can be found here.

Thank you very much! I will give it a try now. Did you get my email?

Yes I got your email and I wrote a response. Let me know if you got it.

Hey, no i did not get the mail :/, added you to the whitelist.

Alright I sent the response again.