Skip to content

Commit

Permalink
try deez
Browse files Browse the repository at this point in the history
  • Loading branch information
oscartbeaumont committed Feb 3, 2024
1 parent 8ba8557 commit 4cf0016
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 5 additions & 2 deletions forge/app.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ process.on("exit", () => {
fs.writeFileSync(configPath, JSON.stringify(data, null, 2));

// TODO: This is hack to make `@azure/identity` place nice on Edge. It will without a doubt break the sourcemap.
fs.appendFileSync(
const code = fs.readFileSync(
path.join(basePath, "functions", "__nitro.func", "index.mjs")
);
fs.writeFileSync(
path.join(basePath, "functions", "__nitro.func", "index.mjs"),
"global = {};"
`global = {};${code}`
);
});
5 changes: 0 additions & 5 deletions forge/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,4 @@ export default defineConfig((config) => ({
ssr: {
noExternal: ["@kobalte/core"],
},
define: {
// By default, Vite doesn't include shims for NodeJS/
// necessary for segment analytics lib to work
global: {},
},
}));

0 comments on commit 4cf0016

Please sign in to comment.