0
Fork 0
mirror of https://github.com/withastro/astro.git synced 2024-12-23 21:53:55 -05:00
astro/packages/integrations/netlify/test/edge-functions/fixtures/dynimport/prod.js
Matthew Phillips f3ab822e32
Allow dynamic imports when using Netlify Edge Functions (#3535)
* Allow dynamic imports when using Netlify Edge Functions

* Update deno test script and changeset
2022-06-07 11:41:32 -04:00

11 lines
281 B
JavaScript

import handler from './.netlify/edge-functions/entry.js';
import { Server } from 'https://deno.land/std@0.132.0/http/server.ts';
const _server = new Server({
port: 8085,
hostname: '0.0.0.0',
handler,
});
_server.listenAndServe();
console.error(`Server running on port 8085`);