I forgot to add .env.production now that one is working sir.
I have one issue.
From my old instance i moved one app to new instance. I moved doctypes. I created react setup and did yarn build.
Existing python code working properly. Created new api’s are not working. i am getting response like this how to solve sir.
Request URL:
/api/method/turiya_app.api.get_data
Request Method:
GET
Status Code:
200 OK
<html lang="en">
<head>
<meta charset="UTF-8"/>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons"/>
<link href="https://fonts.googleapis.com/css2?family=DM+Sans&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"/>
<link rel="shortcut icon" href="/files/Turiyaform_Favicon-removebg-preview.png" type="image/x-icon"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Turiyaforms</title>
<script type="module" crossorigin src="/assets/turiya_app/turiya/assets/index-99b6b423.js"></script>
<link rel="stylesheet" href="/assets/turiya_app/turiya/assets/index-7e4036b6.css">
</head>
<!-- <body>
<div id="root"></div>
<script>
window.csrf_token = "None";
</script>
<script type="module" src="/src/main.tsx"></script>
</body> -->
<body>
<div id="root"></div>
<script>
window.csrf_token = '{{ csrf_token }}';
if (!window.frappe)
window.frappe = {};
window.app_name = "{{ app_name }}";
frappe.boot = JSON.parse({
'lang': 'en',
'sysdefaults': {
'float_precision': 3,
'date_format': 'dd-mm-yyyy',
'time_format': 'HH:mm:ss',
'first_day_of_the_week': 'Sunday',
'number_format': '#,##,###.##'
},
'time_zone': {
'system': 'Asia/Kolkata',
'user': 'Asia/Kolkata'
},
'assets_json': {
'bootstrap-4-web.bundle.js': '/assets/frappe/dist/js/bootstrap-4-web.bundle.FOZOVELL.js',
'controls.bundle.js': '/assets/frappe/dist/js/controls.bundle.BCADTOKS.js',
'data_import_tools.bundle.js': '/assets/frappe/dist/js/data_import_tools.bundle.M3NNVJKU.js',
'desk.bundle.js': '/assets/frappe/dist/js/desk.bundle.7WDHN5GS.js',
'dialog.bundle.js': '/assets/frappe/dist/js/dialog.bundle.XIPKSCYB.js',
'form.bundle.js': '/assets/frappe/dist/js/form.bundle.7BSWP43R.js',
'frappe-web.bundle.js': '/assets/frappe/dist/js/frappe-web.bundle.7NGVU2HT.js',
'libs.bundle.js': '/assets/frappe/dist/js/libs.bundle.TIV7ZGVY.js',
'list.bundle.js': '/assets/frappe/dist/js/list.bundle.THHJ2UTR.js',
'logtypes.bundle.js': '/assets/frappe/dist/js/logtypes.bundle.EKN7LWKW.js',
'onboarding_tours.bundle.js': '/assets/frappe/dist/js/onboarding_tours.bundle.RAUR6X4Z.js',
'report.bundle.js': '/assets/frappe/dist/js/report.bundle.THUMKTDE.js',
'sentry.bundle.js': '/assets/frappe/dist/js/sentry.bundle.IPS6PK2M.js',
'telemetry.bundle.js': '/assets/frappe/dist/js/telemetry.bundle.LKEZCADB.js',
'user_profile_controller.bundle.js': '/assets/frappe/dist/js/user_profile_controller.bundle.ZJ6AYZ5P.js',
'video_player.bundle.js': '/assets/frappe/dist/js/video_player.bundle.DUYYLSFO.js',
'web_form.bundle.js': '/assets/frappe/dist/js/web_form.bundle.UUYJRZEQ.js',
'form_builder.bundle.js': '/assets/frappe/dist/js/form_builder.bundle.DKA67WXT.js',
'print_format_builder.bundle.js': '/assets/frappe/dist/js/print_format_builder.bundle.5PJIL4OI.js',
'workflow_builder.bundle.js': '/assets/frappe/dist/js/workflow_builder.bundle.LKQGN2IC.js',
'build_events.bundle.js': '/assets/frappe/dist/js/build_events.bundle.YCQHDH2E.js',
'file_uploader.bundle.js': '/assets/frappe/dist/js/file_uploader.bundle.4WK53RBB.js',
'kanban_board.bundle.js': '/assets/frappe/dist/js/kanban_board.bundle.5M6YP7JC.js',
'desk.bundle.css': '/assets/frappe/dist/css/desk.bundle.IP5XXUEK.css',
'email.bundle.css': '/assets/frappe/dist/css/email.bundle.NVSCZBSU.css',
'login.bundle.css': '/assets/frappe/dist/css/login.bundle.GGWIGUUV.css',
'print.bundle.css': '/assets/frappe/dist/css/print.bundle.DUOVY4X4.css',
'print_format.bundle.css': '/assets/frappe/dist/css/print_format.bundle.ENS6KOQC.css',
'report.bundle.css': '/assets/frappe/dist/css/report.bundle.RLRPQJ7Z.css',
'web_form.bundle.css': '/assets/frappe/dist/css/web_form.bundle.TAANOOXV.css',
'website.bundle.css': '/assets/frappe/dist/css/website.bundle.TTN3ZJAI.css',
'website.bundle.js': '/assets/lms/dist/js/website.bundle.OZX6IVRK.js',
'lms.bundle.css': '/assets/lms/dist/css/lms.bundle.MYYEIIYB.css',
'rtl_desk.bundle.css': '/assets/frappe/dist/css-rtl/desk.bundle.HTLVA2WO.css',
'rtl_email.bundle.css': '/assets/frappe/dist/css-rtl/email.bundle.VPQ4FHK2.css',
'rtl_login.bundle.css': '/assets/frappe/dist/css-rtl/login.bundle.BUDPJRW7.css',
'rtl_print.bundle.css': '/assets/frappe/dist/css-rtl/print.bundle.5NHI4UOY.css',
'rtl_print_format.bundle.css': '/assets/frappe/dist/css-rtl/print_format.bundle.KTQZDIII.css',
'rtl_report.bundle.css': '/assets/frappe/dist/css-rtl/report.bundle.PHUP5EQ4.css',
'rtl_web_form.bundle.css': '/assets/frappe/dist/css-rtl/web_form.bundle.UY3I2SU7.css',
'rtl_website.bundle.css': '/assets/frappe/dist/css-rtl/website.bundle.VGTFHJHS.css',
'rtl_lms.bundle.css': '/assets/lms/dist/css-rtl/lms.bundle.ZJW4LY2E.css'
},
'sitename': 'turiyatree.in'
});
</script>
</body>
</html>