15 lines
367 B
TypeScript
15 lines
367 B
TypeScript
#!/usr/bin/env -S deno run -A --watch=static/,routes/
|
|
|
|
import dev from '$fresh/dev.ts'
|
|
import config from './fresh.config.ts'
|
|
|
|
import '$std/dotenv/load.ts'
|
|
|
|
await dev(import.meta.url, './main.ts', {
|
|
...config,
|
|
server: {
|
|
cert: await Deno.readTextFile('./cert/localhost.pem'),
|
|
key: await Deno.readTextFile('./cert/localhost-key.pem'),
|
|
},
|
|
})
|