Commit e3e2d569 authored by JunHyung An's avatar JunHyung An
Browse files

Add BACKEND_URL as variable

parent e63f1938
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -19,7 +19,7 @@ cache:

before_script:
  # https://stackoverflow.com/a/75624610
  # - cp ${PRODUCTION_ENV_FILE} .env.production
  - cp ${PRODUCTION_ENV_FILE} .env.production
    # define cache dir & use it npm!
  - npm ci --cache node_modules/ --prefer-offline
#   # monorepo users: run secondary install actions
+4 −1
Original line number Diff line number Diff line
@@ -15,6 +15,9 @@
<script>
	import axios from 'axios';

	const backend_url = process.env.VUE_APP_BACKEND_URL;
	let upload_url1 = `${backend_url}/upload_path1`
 
	export default {
		data(){
			return {
@@ -33,7 +36,7 @@
				formData.append('file', this.file);
				
				axios.post(
					'/single-file',
					upload_url1,
					formData,
					{
						headers: {