cleanup config
This commit is contained in:
@@ -16,6 +16,6 @@
|
||||
- change `base` in `vite.config.ts`
|
||||
- change `API_BASE_URL` and `CLIENT_FRONTEND_URL` in `src/App.jsx`
|
||||
- **backend !!**
|
||||
- change `ADMIN_PASS` and `API_PATH` in `admin_api.php`
|
||||
- change `ADMIN_PASS` in `admin_api.php`
|
||||
- change `$password` in `adm/phpliteadmin.config.php`
|
||||
- **block http requests to `data.db`!!!**
|
||||
@@ -1,8 +1,9 @@
|
||||
<?php
|
||||
include 'k-api.php';
|
||||
|
||||
|
||||
// CHANGE THIS
|
||||
const ADMIN_PASS = "superdengipassword4";
|
||||
|
||||
const API_PATH = "./";
|
||||
|
||||
function db()
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
// CHANGE TO YOUR API DESTINATION
|
||||
export const API_BASE_URL = "http://localhost:8321/admin_api.php";
|
||||
// export const API_BASE_URL = "http://192.168.3.10:8321/admin_api.php";
|
||||
// export const API_BASE_URL = "http://x90620bx.beget.tech/dx4back/admin_api.php"
|
||||
|
||||
// TYPE: url/dx4/
|
||||
export const CLIENT_FRONTEND_URL = "http://localhost:5173/dx4/";
|
||||
// export const CLIENT_FRONTEND_URL = "http://x90620bx.beget.tech/dx4/";
|
||||
export const CLIENT_FRONTEND_URL = "http://localhost:5173/";
|
||||
|
||||
import { atom, useAtom } from "jotai";
|
||||
import { atomWithStorage } from "jotai/utils";
|
||||
|
||||
@@ -11,5 +11,5 @@ export default defineConfig({
|
||||
}),
|
||||
tailwindcss(),
|
||||
],
|
||||
base: "/dx4dashboard",
|
||||
base: "/",
|
||||
});
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
// CHANGE TO YOUR API DESTINATION
|
||||
export const API_BASE_URL = "http://localhost:8321/api.php";
|
||||
// export const API_BASE_URL = "http://192.168.3.10:8321/api.php";
|
||||
// export const API_BASE_URL = "http://x90620bx.beget.tech/dx4back/api.php"
|
||||
|
||||
import { atom, useAtom } from "jotai";
|
||||
import { atomWithStorage } from "jotai/utils";
|
||||
|
||||
+4
-4
@@ -5,7 +5,7 @@ import { VitePWA } from "vite-plugin-pwa";
|
||||
|
||||
// https://vite.dev/config/
|
||||
export default defineConfig({
|
||||
base: "/dx4/",
|
||||
base: "/",
|
||||
plugins: [
|
||||
react({
|
||||
babel: {
|
||||
@@ -19,11 +19,11 @@ export default defineConfig({
|
||||
name: "dx 4",
|
||||
short_name: "dx4",
|
||||
description: "dnevnik-x app",
|
||||
theme_color: "#eee",
|
||||
theme_color: "#000",
|
||||
background_color: "#000",
|
||||
display: "standalone",
|
||||
scope: "/dx4/",
|
||||
start_url: "/dx4/",
|
||||
scope: "/",
|
||||
start_url: "/",
|
||||
icons: [
|
||||
{
|
||||
src: "icons/windows11/SmallTile.scale-100.png",
|
||||
|
||||
Reference in New Issue
Block a user