Skip to content

Commit

Permalink
Merge pull request #8 from LikeLion-Hackathon-T1/develop
Browse files Browse the repository at this point in the history
feat: syluv.store로 접속하면 www.syluv.store로 리다이렉션
  • Loading branch information
seokkkkkk authored Jul 18, 2024
2 parents a04dad4 + 648862b commit ea5c142
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React from "react";
import React, { useEffect } from "react";
import { BrowserRouter, Route, Routes } from "react-router-dom";
import styled from "styled-components";
import LoginPage from "pages/LoginPage";
Expand All @@ -10,6 +10,13 @@ import MarketPage from "pages/MarketPage";
import { ScrollContainer } from "styles/SyluvStyle";

const App = () => {
useEffect(() => {
if (window.location.host === "syluv.store") {
window.location.replace(
"https://www.syluv.store" + window.location.pathname
);
}
}, []);
return (
<ScrollContainer>
<Container>
Expand Down

0 comments on commit ea5c142

Please sign in to comment.