This uses variable substitution to insert SITE_NAME into index.html, rather than hard-coding “edX” into the file. It also updates the .env files to use “localhost” as the default SITE_NAME.
18 lines
602 B
HTML
Executable File
18 lines
602 B
HTML
Executable File
<!doctype html>
|
|
<html lang="en-us">
|
|
<head>
|
|
<title>Account | <%= process.env.SITE_NAME %></title>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<link rel="shortcut icon" href="<%=webpackConfig.output.publicPath%>favicon.ico" type="image/x-icon" />
|
|
<% if (process.env.OPTIMIZELY_PROJECT_ID) { %>
|
|
<script
|
|
src="<%= process.env.MARKETING_SITE_BASE_URL %>/optimizelyjs/<%= process.env.OPTIMIZELY_PROJECT_ID %>.js"
|
|
></script>
|
|
<% } %>
|
|
</head>
|
|
<body>
|
|
<div id="root"></div>
|
|
</body>
|
|
</html>
|