Skip to content

Feature/auto devserver port#1547

Merged
leaanthony merged 6 commits into
masterfrom
feature/auto_devserver_port
Jul 12, 2022
Merged

Feature/auto devserver port#1547
leaanthony merged 6 commits into
masterfrom
feature/auto_devserver_port

Conversation

@leaanthony

@leaanthony leaanthony commented Jul 11, 2022

Copy link
Copy Markdown
Member

This PR adds an "auto" option for frontend:dev:serverUrl that attempts to determine the URL vite is running on via the vite output.
Updated default templates.
Fix package/variable name clashes.

Fixes #1545

@leaanthony leaanthony requested a review from stffabi July 11, 2022 10:42
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 11, 2022

Copy link
Copy Markdown

Deploying with  Cloudflare Pages  Cloudflare Pages

Latest commit: d021d09
Status: ✅  Deploy successful!
Preview URL: https://705a8c68.wails-website.pages.dev
Branch Preview URL: https://feature-auto-devserver-port.wails-website.pages.dev

View logs

@stffabi stffabi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's a great enhancement for the frontend server integration 🚀

I've left some comments about the stdout handling, which probably might need to be addressed.

Comment thread v2/cmd/wails/internal/commands/dev/dev.go Outdated
Comment thread v2/cmd/wails/internal/commands/dev/dev.go Outdated
Comment thread v2/cmd/wails/internal/commands/dev/dev.go Outdated
Comment thread v2/cmd/wails/internal/commands/dev/dev.go Outdated
Comment thread v2/cmd/wails/internal/commands/dev/dev.go Outdated
@leaanthony

Copy link
Copy Markdown
Member Author

Pushed a new approach which I feel is a lot better. LMKWYT!

@leaanthony leaanthony requested a review from stffabi July 12, 2022 10:30

@stffabi stffabi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Handle Vite port change

2 participants