Skip to content

Commit

Permalink
dont add worker to asset dir
Browse files Browse the repository at this point in the history
  • Loading branch information
AlecAivazis committed Oct 12, 2023
1 parent 5d2359e commit b22984c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/houdini-adapter-cloudflare/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { fileURLToPath } from 'node:url'

const adapter: Adapter = async ({ adapterPath, outDir, sourceDir }) => {
// the first thing we have to do is copy the source directory over
await fs.recursiveCopy(sourceDir, outDir)
await fs.recursiveCopy(sourceDir, path.join(outDir, 'assets'))

// read the contents of the worker file
let workerContents = (await fs.readFile(sourcePath('./worker.js')))!
Expand Down
2 changes: 1 addition & 1 deletion packages/houdini/src/lib/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ export class Config {
}

get routerBuildDirectory() {
return path.join(this.projectRoot, 'dist', 'assets')
return path.join(this.projectRoot, 'dist')
}

get definitionsDocumentsPath() {
Expand Down

0 comments on commit b22984c

Please sign in to comment.