Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Vite for v9 updates to the codelab #224

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open

Use Vite for v9 updates to the codelab #224

wants to merge 10 commits into from

Conversation

davideast
Copy link
Member

No description provided.

"eslint": "^4.17.0",
"prettier": "^1.5.3"
"prettier": "^1.5.3",
"vite": "^2.9.6"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

consider updating to Vite 3 now that it's out


async addRating(restaurantID, rating) {
/*
TODO: Retrieve add a rating to a restaurant
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
TODO: Retrieve add a rating to a restaurant
TODO: Add a rating to a restaurant

Comment on lines +19 to +21
firebase.initializeApp({
/* Enter your config here */
});
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this import from scripts/config.js just like app.js does?

@jhuleatt
Copy link
Contributor

jhuleatt commented Aug 4, 2022

Does hosting.public in firebase.json need to be updated to point to Vite's build output? Vite defaults to a dist directory.

Comment on lines +1 to +5
export const config = {
firebase: {
/* Enter your config here */
}
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FriendlyChat throws an error if config isn't provided. Want to do the same thing here?

https://github.com/firebase/codelab-friendlychat-web/blob/main/web-start/src/firebase-config.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants