skip to Main Content

Firebase hosting using SvelteKit

I have created a svelte app and building app using SvelteKit everything is works fine. I tried to deploy this app in firebase hosting but it fails. Sveltekit generating production build under .svelte-kit folder. I tried to change the public…

VIEW QUESTION

Firebase – How to stream data to the Browser with Google Cloud Functions so that download starts immediately?

I am streaming data to the browser like this: res.writeHead(200, { 'Content-Type': 'text/event-stream', 'Content-Disposition': 'attachment; filename="data.dat"', 'Cache-Control': 'no-cache', 'Connection': 'keep-alive' }) stream1.pipe(res, {end: false)}; stream1.on('end', () => { console.log("stream 1 finished"); stream2.pipe(res, {end: false}); stream2.on('end', () => { console.log("last stream…

VIEW QUESTION

Firebase – The argument type 'Null' can't be assigned to the parameter type 'QuerySnapshot<Object?>'

import 'package:brew_crew/services/auth.dart'; import 'package:cloud_firestore/cloud_firestore.dart'; import 'package:flutter/material.dart'; import 'package:provider/provider.dart'; import 'package:brew_crew/services/database.dart'; class Home extends StatelessWidget { final AuthService _auth = AuthService(); @override Widget build(BuildContext context) { return StreamProvider<QuerySnapshot>.value( value: DatabaseService(uid: '').brews, initialData: (null), child: Scaffold( backgroundColor: Colors.brown[50], appBar: AppBar( title: Text('Brew…

VIEW QUESTION
Back To Top
Search