Q&A
理屈がわかっていないので、恥を偲んでご質問させてください。
ionicにてアプリ内部のお問合せフォームを作成中です。
node.jsのhttpモジュールで簡易サーバを構築しようとしていました。
Firebaseにhosting予定ですが、webアプリを公開するうえで、
①簡易サーバで指定したポートは継続して解放され続けるのでしょうか。
②hostingしたサーバーレスの状況下では、簡易サーバを作る必要がありますでしょうか。
js
1const http = require("http"); 2 3const server = http.createServer((request, response) => { 4 response.writeHead(200, { 5 "Content-Type": "text/html" 6 }); 7 8 const responseMessage = "<h1>Hello World</h1>"; 9 response.end(responseMessage); 10 console.log(`Sent a response : ${responseMessage}`); 11});
回答1件
下記のような回答は推奨されていません。
このような回答には修正を依頼しましょう。