Skip to content

Commit 1b07d51

Browse files
committed
fix: use cms-config-url html link to determine proper netlify cms config.yml path
Update snapshot
1 parent 6ddb7db commit 1b07d51

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Diff for: lib/template/index.html

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<head>
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<link href="<%= webpackConfig.output.publicPath %>config.yml" type="text/yaml" rel="cms-config-url">
67
<title><%= htmlWebpackPlugin.options.title %></title>
78
</head>
89
<body>

Diff for: test/__snapshots__/module.test.js.snap

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@ exports[`module admin 1`] = `
66
<head>
77
<meta charset=\\"utf-8\\" />
88
<meta name=\\"viewport\\" content=\\"width=device-width, initial-scale=1.0\\" />
9+
<link href=\\"/admin/config.yml\\" type=\\"text/yaml\\" rel=\\"cms-config-url\\">
910
<title>Content Manager</title>
1011
</head>
1112
<body>
12-
<script type=\\"text/javascript\\" src=\\"/admin/bundle.1ae2be3d50182028bccf.js\\"></script></body>
13+
<script type=\\"text/javascript\\" src=\\"/admin/bundle.57440c18556c5552e2da.js\\"></script></body>
1314
</html>
1415
"
1516
`;

0 commit comments

Comments
 (0)