Skip to content

Commit e6e30dd

Browse files
committed
input-inspector.vercel.app → input-inspector.javan.us
1 parent b22fdf4 commit e6e30dd

File tree

7 files changed

+33
-12
lines changed

7 files changed

+33
-12
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1-
.now
1+
.netlify
2+
.vercel
23
node_modules
34
public

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# [Input Inspector](https://input-inspector.now.sh/)
1+
# [Input Inspector](https://input-inspector.javan.us)
22

33
See what happens when you type!
44

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)
66

77
## See Also
88

netlify.toml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,13 @@
77
from = "/template/*"
88
to = "/"
99
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

now.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<title>Input Inspector</title>
88
<% htmlWebpackPlugin.files.css.forEach(href => { %><link href="<%= href %>" rel="stylesheet"><% }) %>
99
<% 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><% } %>
1011
</head>
1112
<body>
1213
<main

vercel.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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+
}

webpack.config.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ const MiniCssExtractPlugin = require("mini-css-extract-plugin")
22
const HtmlWebpackPlugin = require("html-webpack-plugin")
33
const path = require("path")
44

5+
const env = process.env.URL == "https://input-inspector.javan.us" ? "production" : "development"
6+
57
module.exports = {
68
entry: {
79
main: "./src/index.js"
@@ -44,6 +46,7 @@ module.exports = {
4446
template: "./src/index.html",
4547
filename: "index.html",
4648
inject: false,
49+
templateParameters: { env },
4750
})
4851
]
4952
}

0 commit comments

Comments
 (0)