unjs
pnpm workspace+TypeScriptãªmonorepoã§ã Cloud Functions for Firebaseãéçºãã¦ããã¨ãã«ã unjs/unbuildã§ãã«ããã¦ã¿ãã¨ãã®åå¿é²(*´Ïï½*) å°ãªãè¨å®ã§ãã«ããã§ãã¦ä¾¿å©(*´Ïï½*) unbuildã¨ã¯ unjs/unbuild: A unified JavaScript build systemâ¦
unjs/nitroã§ãããªæãã®ãã£ã¬ã¯ããªæ§æã®å ´åã _ignore_dir/*ãusers/_ignore_path.tsãç¡è¦ããããªã¨æãã è²ã 調ã¹ã¦ã¿ãã¨ãã®åå¿é²(*´Ïï½*) routes/ _ignore_dir/ index.ts users/ _ignore_path.ts index.ts ããã¥ã¡ã³ãã«ã¯ã¡ããã£ã¨æ¸ãã¦ãâ¦
UnJSã®Nitroã§APIãµã¼ããéçºãã¦ããã¨ãã«ã CORSã§ããã£ãã¨ãã«ãããã調ã¹ãã¨ãã®åå¿é²(*´Ïï½*) preflight requestã¨ããã®ãããã OPTIONSmethodã§ãªã¯ã¨ã¹ããé£ãã§ãããã GETãã許å¯ãã¦ããªãã£ãããããã¾ããããªãã£ãã£ã½ã Prefligâ¦
Axiosããunjs/ofetchã«ç§»è¡ããéã«ã ä¾å¤ãå ±éåã»ç¬èªã¯ã©ã¹ã«ããããªã¨æãã ãããã調ã¹ã¦ã¿ãã¨ãã®åå¿é²(*´Ïï½*) onResponseErrorãå©ç¨ããã°OK ofetch.create()ã使ã£ã¦ãå ±éçãªã¬ã¹ãã³ã¹ã¨ã©ã¼ã«å¯¾ãã onResponseErrorã§è¨å®ãã¦ããã°â¦
Nuxtã ã¨ãNuxt SEO Kitã®nuxt-og-imageã使ãã°ã vueã³ã³ãã¼ãã³ãã¨ãHMLTãOGç»åã«ã§ãããã©ã unjs/nitroã§ãã§ããªãããªã¨æãã ãããã調ã¹ã¦ã¿ãã¨ãã®åå¿é²(*´Ïï½*) nuxt-og-imageã®ä¸ãã®ããã¦ã¿ããã satoriã¨sharpã使ã£ã¦ãã®ã§ãããâ¦
æè¿ãNitroã§ãµã¼ããå®è£ ãã¦ãããã©ã ãã¹ãå¨ãã§ããã£ãã®ã§ããããã調ã¹ã¦ã¿ãã¨ãã®åå¿é²(*´Ïï½*) ç¾ç¶ããã¹ãã«é¢ããã¬ã¤ãã¯ãªãã£ã½ã ãã®ãã£ã¹ã«ãã·ã§ã³ããããããªãã£ã½ããã Testing examples? · unjs/nitro · Discussion #194 Nâ¦
Nitroã§CORSã«å¼ã£ããã£ãã®ã§ã ã©ããã£ã¦è¨å®ãããã調ã¹ã¦ã¿ãã¨ãã®åå¿é²(*´Ïï½*) 以ä¸ã®ãã«ãã«æ¸ãã¦ãã£ã(*´Ïï½*) routerules | Configuration · Nitro // nitro.config.ts export default defineNitroConfig({ routeRules: { // å ¨é¨ "/**": {â¦
ãã®è¨äºãã¿ã¦ãNitro ãµã¼ãã«èå³ãåºãã®ã§ã ããã¥ã¡ã³ãã¿ãªãããå°ã触ã£ã¦ã¿ãã¨ãã®åå¿é²(*´Ïï½*) Nitro + TypeScript ã§ä½ã軽éAPIãµã¼ã - Qiita å ¨ã¦ãdevDependenciesã«ããããå ·ä½çã«ã¯ããã«ãå¾ã®è³æãå¿ è¦æä½éã®ãã®ã§.outputãã£â¦