Skip to content

Commit

Permalink
Merge branch 'feature/issue-1007-api-routes' of github.com:ProjectEve…
Browse files Browse the repository at this point in the history
…rgreen/greenwood into feature/issue-1007-api-routes
  • Loading branch information
thescientist13 committed Dec 10, 2022
2 parents 6a998d3 + 84886f2 commit 64f212e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/cli/src/plugins/resource/plugin-api-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,11 @@ class ApiRoutesResource extends ResourceInterface {

// https://github.com/nodejs/modules/issues/307#issuecomment-1165387383
if (process.env.__GWD_COMMAND__) { // eslint-disable-line no-underscore-dangle
href = `${resolvedUrl}?t=${Date.now()}`;
href = `${href}?t=${Date.now()}`;
}

const { handler } = await import(href);

// TODO can we assume localhost?
// TODO get port
const req = new Request(new URL(`https://localhost:1984${url}`));
Expand Down

0 comments on commit 64f212e

Please sign in to comment.