iPod Video White

๐Ÿ““ TIL

[220708] Firebase deploy

k_m_jin 2022. 7. 8. 23:52

functions ๋งŒ ๋ฐฐํฌ


-  region ๋ณ€๊ฒฝ

๊ฒฝ๋กœ firebase-test/functions

region() 

export const api = functions.region('asia-northeast3').https.onRequest(app)

cors

cors ๋ถ€๋ถ„์—๋Š” whitelist ๋งŒ ์ถ”๊ฐ€

whitelist

blacklist

 

app.use(cors({
  origin: 'http://localhost:3000'
}))

 

์ถœ์ฒ˜ ํŒจ์ŠคํŠธ์บ ํผ์Šค ๋ฐ•์˜์›… ๊ฐ•์‚ฌ๋‹˜

๋ฐ˜์‘ํ˜•

'๐Ÿ““ TIL' ์นดํ…Œ๊ณ ๋ฆฌ์˜ ๋‹ค๋ฅธ ๊ธ€

[220712] edge-functions / nelify.toml  (0) 2022.07.12
[220711] ๋ทฐ์Šคํ„ฐ๋””  (0) 2022.07.11
[220705] firebase-3  (0) 2022.07.05
[220704]  (0) 2022.07.04
[220701] Firebase  (0) 2022.07.01