Skip to content

Commit

Permalink
svelte adapter node
Browse files Browse the repository at this point in the history
  • Loading branch information
rubys committed Dec 24, 2024
1 parent 128f24f commit 708772d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1002,7 +1002,7 @@ export class GDF {
if (this.svelte && fs.existsSync(path.join(appdir, 'svelte.config.js'))) {
let config = fs.readFileSync(path.join(appdir, 'svelte.config.js'), 'utf-8')
if (config.includes('@sveltejs/adapter-') && !config.includes('@sveltejs/adapter-node')) {
config = config.replace(/@@sveltejs\/adapter-[-\w]+/, '@sveltejs/adapter-node')
config = config.replace(/@sveltejs\/adapter-[-\w]+/, '@sveltejs/adapter-node')
fs.writeFileSync(path.join(appdir, 'svelte.config.js'), config)
}
}
Expand Down

0 comments on commit 708772d

Please sign in to comment.