mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
chore(cli): enable accessing dev server by host name (#8912)
This PR is particularly useful for debugging mobile app (and any other personal devices for testing) via [Tailscale](https://tailscale.com/), since it allows accessing a stable hostname on phone, instead of typing in an unstable IP address. Before:  After: 
This commit is contained in:
@@ -347,6 +347,8 @@ export const createConfiguration: (
|
||||
optimization: OptimizeOptionOptions(buildFlags),
|
||||
|
||||
devServer: {
|
||||
host: '0.0.0.0',
|
||||
allowedHosts: 'all',
|
||||
hot: buildFlags.static ? false : 'only',
|
||||
liveReload: !buildFlags.static,
|
||||
client: {
|
||||
|
||||
Reference in New Issue
Block a user