mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-26 02:35:58 +08: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),
|
optimization: OptimizeOptionOptions(buildFlags),
|
||||||
|
|
||||||
devServer: {
|
devServer: {
|
||||||
|
host: '0.0.0.0',
|
||||||
|
allowedHosts: 'all',
|
||||||
hot: buildFlags.static ? false : 'only',
|
hot: buildFlags.static ? false : 'only',
|
||||||
liveReload: !buildFlags.static,
|
liveReload: !buildFlags.static,
|
||||||
client: {
|
client: {
|
||||||
|
|||||||
Reference in New Issue
Block a user