diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml
index c5c9418f..47a7c826 100644
--- a/.github/workflows/deploy.yml
+++ b/.github/workflows/deploy.yml
@@ -45,6 +45,6 @@ jobs:
npm install &&
npm run build &&
sudo rm -rf /var/www/html/* &&
- sudo cp -r * /var/www/html/ &&
+ sudo cp -r out/. /var/www/html/ &&
sudo chown -R www-data:www-data /var/www/html
"
\ No newline at end of file
diff --git a/frontend/app/register/page.tsx b/frontend/app/register/page.tsx
index eda18a9c..7c656d84 100644
--- a/frontend/app/register/page.tsx
+++ b/frontend/app/register/page.tsx
@@ -117,7 +117,7 @@ export default function RegisterPage() {
handleChange("lastName", e.target.value)}
diff --git a/frontend/next.config.mjs b/frontend/next.config.mjs
index fdf72ae3..59094281 100644
--- a/frontend/next.config.mjs
+++ b/frontend/next.config.mjs
@@ -1,5 +1,6 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
+ output: 'export',
typescript: {
ignoreBuildErrors: true,
},