diff --git a/hrms/www/roster.py b/hrms/www/roster.py new file mode 100644 index 0000000000..ed97f99c6a --- /dev/null +++ b/hrms/www/roster.py @@ -0,0 +1,9 @@ +import frappe + + +def get_context(context): + csrf_token = frappe.sessions.get_csrf_token() + frappe.db.commit() # nosempgrep + context = frappe._dict() + context.csrf_token = csrf_token + return context diff --git a/roster/vite.config.js b/roster/vite.config.js index 0c36590017..72f2dc0ed5 100644 --- a/roster/vite.config.js +++ b/roster/vite.config.js @@ -2,14 +2,13 @@ import { defineConfig } from "vite"; import vue from "@vitejs/plugin-vue"; import fs from "fs"; import path from "path"; -import { webserver_port } from "../../../sites/common_site_config.json"; // https://vitejs.dev/config/ export default defineConfig({ plugins: [vue()], server: { port: 8081, - proxy: getProxyOptions({ port: webserver_port }), + proxy: getProxyOptions(), }, resolve: { alias: {