Skip to content

Commit

Permalink
fix: add .local to the default list of supported domains (#344)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio authored Nov 14, 2023
1 parent 0c969ef commit 08f7c78
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/gentle-falcons-shop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"10up-toolkit": patch
---

Add `.local` to the default list of supported domains.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ Object {
"devServer": Object {
"allowedHosts": Array [
".test",
".local",
],
"client": Object {
"overlay": Object {
Expand Down
2 changes: 1 addition & 1 deletion packages/toolkit/config/webpack/devServer.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = ({ isPackage, projectConfig: { devServer, devURL, hot, devServe
}

if (!isPackage && hot) {
const allowedHosts = ['.test'];
const allowedHosts = ['.test', '.local'];

try {
allowedHosts.push(new URL(devURL).host);
Expand Down

0 comments on commit 08f7c78

Please sign in to comment.