Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -143,3 +143,5 @@ RecipeApp/RecipeApp/wwwroot/uploads/
RecipeApp/RecipeApp/appsettings.json

RecipeApp/RecipeApp/appsettings.Development.json

Web/RecipeManagerBot/.env
2 changes: 1 addition & 1 deletion RecipeApp/RecipeManagerBot/appsettings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"BotConfiguration": {
"BotToken": "8313558915:AAH903QP8lV6lhOzHH0ryKqOr5O9ybfJCrU"
"BotToken": "8313558915:AAEY0cJPX69eddXQKFZX2FuV01q4jDcHPpc"
}
}
8 changes: 5 additions & 3 deletions Web/RecipeManagerBot/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
Expand Down Expand Up @@ -50,8 +50,10 @@ <h3 class="text-xs font-bold uppercase text-slate-400 mb-3 ml-1 tracking-widest"
tg.expand();
tg.MainButton.hide(); // Используем свою кнопку для стиля

// !!! ЗАМЕНИ ЭТОТ URL НА СВОЙ ПОСЛЕ ДЕПЛОЯ БЭКЕНДА !!!
const API_BASE_URL = "https://your-backend-on-railway.app";
// Пытаемся получить адрес из переменной, которую Vercel может подставить (если используем сборщики)
// Или, в нашем случае для простого HTML, мы можем оставить заглушку,
// но лучше всего использовать подход с относительным путем или конфигом.
const API_BASE_URL = import.meta.env.VITE_API_URL || "http://localhost:5000";;

function addIngredient() {
const container = document.getElementById('ingredients-list');
Expand Down
16 changes: 16 additions & 0 deletions Web/RecipeManagerBot/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"name": "recipemanagerbot",
"version": "1.0.0",
"description": "",
"main": "config.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs"
}
20 changes: 20 additions & 0 deletions Web/RecipeManagerBot/vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"version": 2,
"rewrites": [
{
"source": "/(.*)",
"destination": "/index.html"
}
],
"headers": [
{
"source": "/(.*)",
"headers": [
{
"key": "Access-Control-Allow-Origin",
"value": "*"
}
]
}
]
}