In this video, I show you how to use SSR with Firestore. SSR stands for server-side rendering and it means that the HTML for a page gets rendered by the server.
Code:
https://github.com/phptuts/firebase-s...
Docs:
https://phptuts.github.io/svelte-docs...
SvelteCasts Youtube Channel:
/ @sveltecasts763
Firebase Rules
rules_version = '2';
service cloud.firestore {
match /databases/{database}/documents {
match /recipes/{document=**} {
allow read: if true;
allow create: if request.auth != null;
}
match /private/{document=**} {
allow read, write: if request.auth != null;
}
match /public/{document=**} {
allow read: if true;
}
}
}