Skip to content

Instantly share code, notes, and snippets.

@zanona
zanona / sentry-serverless-firebase.ts
Last active September 4, 2024 19:51
Missing Sentry's firebase serverless wrappers
/**
* Temporary wrapper for firebase functions until @sentry/serverless support is implemented
* It currently supports wrapping https, pubsub and firestore handlers.
* usage: https.onRequest(wrap((req, res) => {...}))
*/
import type {Event} from '@sentry/types';
import type {https} from 'firebase-functions';
import type {onRequest, onCall} from 'firebase-functions/lib/providers/https';
import type {ScheduleBuilder} from 'firebase-functions/lib/providers/pubsub';
import type {DocumentBuilder} from 'firebase-functions/lib/providers/firestore';
<template>
<div>
<div class="map_container" v-show="googleLoaded">
<div id="map"></div>
<input type="text" class="controls" id="pac-input"/>
</div>
<!-- <button id="btnLoad" v-show="!googleLoaded" class="btn btn-primary" v-on:click="loadMap">Load map</button> -->
<p v-show="!googleLoaded">Loading map...</p>
</div>
</template>