Skip to content

Commit

Permalink
Merge pull request #154 from supabase/fix-custom-module-root
Browse files Browse the repository at this point in the history
fix: allow loading modules from any local path
  • Loading branch information
laktek authored Aug 2, 2023
2 parents ca0e487 + 3288f8b commit acf31b1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion crates/sb_workers/user_workers.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class UserWorker {
envVars: [],
forceCreate: false,
netAccessDisabled: false,
customModuleRoot: null,
customModuleRoot: '',
...opts,
};

Expand Down
2 changes: 0 additions & 2 deletions examples/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ serve(async (req: Request) => {
const memoryLimitMb = 150;
const workerTimeoutMs = 5 * 60 * 1000;
const noModuleCache = false;
const customModuleRoot = null;
// you can provide an import map inline
// const inlineImportMap = {
// imports: {
Expand All @@ -55,7 +54,6 @@ serve(async (req: Request) => {
importMapPath,
envVars,
forceCreate,
customModuleRoot,
netAccessDisabled,
});
};
Expand Down

0 comments on commit acf31b1

Please sign in to comment.