mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Don't forward test-i18n.js requests (#17422)
This fixes i18n related tests in dev env
This commit is contained in:
@@ -392,9 +392,12 @@ to serve API requests. For example:
|
||||
|
||||
shouldForwardRequest(request) {
|
||||
if (
|
||||
["/tests/index.html", "/ember-cli-live-reload.js", "/testem.js"].includes(
|
||||
request.path
|
||||
)
|
||||
[
|
||||
"/tests/index.html",
|
||||
"/ember-cli-live-reload.js",
|
||||
"/testem.js",
|
||||
"/assets/test-i18n.js",
|
||||
].includes(request.path)
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user