create-panal-agent 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/template/_package.json +1 -1
- package/template/src/server.ts +3 -0
package/package.json
CHANGED
package/template/_package.json
CHANGED
package/template/src/server.ts
CHANGED
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
* arranca y para, y no consume RPC cuando no hay trabajo.
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
+
// Carga el .env ANTES que nada: si esto falta, el servidor no ve la clave que
|
|
22
|
+
// el generador dejó ahí y muere diciendo que falta, con el fichero delante.
|
|
23
|
+
import 'dotenv/config';
|
|
21
24
|
import { createServer, type IncomingMessage, type ServerResponse } from 'node:http';
|
|
22
25
|
import { mkdirSync, readFileSync, writeFileSync } from 'node:fs';
|
|
23
26
|
import { join } from 'node:path';
|