Explorar el Código

added .htaccess file and changed page title.

Tomi Cvetic hace 4 años
padre
commit
ba5e5b82ea

+ 11 - 0
frontend/public/.htaccess

@@ -0,0 +1,11 @@
+<IfModule mod_rewrite.c>
+
+  RewriteEngine On
+  RewriteBase /
+  RewriteRule ^index\.html$ - [L]
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteCond %{REQUEST_FILENAME} !-f
+  RewriteRule . /index.html [L]
+
+</IfModule>

+ 1 - 1
frontend/src/app/components/Meta.tsx

@@ -8,7 +8,7 @@ const Meta = () => (
     <link rel='stylesheet' type='text/css' href='/nprogress.css' />
     <link rel='stylesheet' type='text/css' href='/normalize.css' />
     <link rel='stylesheet' type='text/css' href='/video.css' />
-    <title>u-fit</title>
+    <title>u-fit HIIT</title>
   </Head>
 )
 

+ 0 - 3
frontend/src/app/components/Page.tsx

@@ -8,9 +8,6 @@ import GlobalStyle from '../../styles/global'
 const Page = (props: any) => (
   <>
     <Meta />
-    <Head>
-      <title>Home</title>
-    </Head>
 
     <Header />
     <main>{props.children}</main>