File tree 7 files changed +33
-12
lines changed
7 files changed +33
-12
lines changed Original file line number Diff line number Diff line change 1
- .now
1
+ .netlify
2
+ .vercel
2
3
node_modules
3
4
public
Original file line number Diff line number Diff line change 1
- # [ Input Inspector] ( https://input-inspector.now.sh/ )
1
+ # [ Input Inspector] ( https://input-inspector.javan.us )
2
2
3
3
See what happens when you type!
4
4
5
- [ ![ Input Inpsector Screenshot] ( https://user-images.githubusercontent.com/5355/48789037-18dcdd00-ecba-11e8-93cb-9d330224bd2b .png )] ( https://input-inspector.now.sh /profiles/r2tRtvEOm3N0zWkZQJgk )
5
+ [ ![ Input Inpsector Screenshot] ( https://user-images.githubusercontent.com/5355/139100956-a1ace0b4-b6b8-48a3-94f0-2bc2775b9825 .png )] ( https://input-inspector.javan.us /profiles/R9DJM6fWli6vHM4wKmeF )
6
6
7
7
## See Also
8
8
Original file line number Diff line number Diff line change 7
7
from = " /template/*"
8
8
to = " /"
9
9
status = 200
10
+
11
+ [[redirects ]]
12
+ from = " /hello.js"
13
+ to = " https://plausible.io/js/plausible.js"
14
+ status = 200
15
+
16
+ [[redirects ]]
17
+ from = " /api/event"
18
+ to = " https://plausible.io/api/event"
19
+ status = 202
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 7
7
< title > Input Inspector</ title >
8
8
< % htmlWebpackPlugin.files.css.forEach(href => { %> < link href ="<%= href %> " rel ="stylesheet "> < % }) %>
9
9
< % htmlWebpackPlugin.files.js.forEach(src => { %> < script src ="<%= src %> " defer > </ script > < % }) %>
10
+ < % if (env == "production") { %> < script defer data-domain ="input-inspector.javan.us " src ="/hello.js "> </ script > < % } %>
10
11
</ head >
11
12
< body >
12
13
< main
Original file line number Diff line number Diff line change
1
+ {
2
+
3
+ "redirects" : [
4
+ {
5
+ "source" : " /" ,
6
+ "destination" : " https://input-inspector.javan.us" ,
7
+ "permanent" : true
8
+ },
9
+ {
10
+ "source" : " /:path*" ,
11
+ "destination" : " https://input-inspector.javan.us/:path*" ,
12
+ "permanent" : true
13
+ }
14
+ ]
15
+ }
Original file line number Diff line number Diff line change @@ -2,6 +2,8 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin")
2
2
const HtmlWebpackPlugin = require ( "html-webpack-plugin" )
3
3
const path = require ( "path" )
4
4
5
+ const env = process . env . URL == "https://input-inspector.javan.us" ? "production" : "development"
6
+
5
7
module . exports = {
6
8
entry : {
7
9
main : "./src/index.js"
@@ -44,6 +46,7 @@ module.exports = {
44
46
template : "./src/index.html" ,
45
47
filename : "index.html" ,
46
48
inject : false ,
49
+ templateParameters : { env } ,
47
50
} )
48
51
]
49
52
}
You can’t perform that action at this time.
0 commit comments