Move API_ORIGIN into constants.js
This commit is contained in:
@@ -1,11 +1,10 @@
|
||||
<script>
|
||||
|
||||
import { TextViewer, ImageViewer } from 'pankow-viewers';
|
||||
import { API_ORIGIN } from '../constants.js';
|
||||
import { createDirectoryModel } from '../models/DirectoryModel.js';
|
||||
import { sanitize } from 'pankow/utils';
|
||||
|
||||
const API_ORIGIN = import.meta.env.VITE_API_ORIGIN ? import.meta.env.VITE_API_ORIGIN : window.location.origin;
|
||||
|
||||
export default {
|
||||
name: 'FileViewer',
|
||||
components: {
|
||||
|
||||
Reference in New Issue
Block a user