Skip to content

Commit

Permalink
feat: detect out folder for adding Capacitor to NextJS projects
Browse files Browse the repository at this point in the history
  • Loading branch information
dtarnawsky committed Sep 30, 2024
1 parent 6ce5919 commit d676fcd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
## Changelog

### Version 1.95

- Support for NextJS projects using static exports with an `out` folder

### Version 1.94

- Options for running in the web browser, VS Code editor, Nexus browser added as icons
Expand Down
2 changes: 2 additions & 0 deletions src/capacitor-config-file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ export function getCapacitorConfigDistFolder(folder: string): string {
result = 'dist';
} else if (existsSync(join(folder, 'build'))) {
result = 'build';
} else if (existsSync(join(folder, 'out'))) {
result = 'out';
}
}
if (!result) {
Expand Down

0 comments on commit d676fcd

Please sign in to comment.